From 22d492739cdbf5027636242283579b321db63b2c Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Fri, 6 Oct 2017 15:55:37 +0200 Subject: [PATCH] =?UTF-8?q?[fix]=C2=A0fixing=20new=20config.inc.php=20roun?= =?UTF-8?q?dcube=20config=20file=20for=20Jessie/Stretch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jessie/alternc-roundcube.postinst | 49 +++++++++++++++++++++++++++++++ jessie/patch.sh | 1 + 2 files changed, 50 insertions(+) create mode 100644 jessie/alternc-roundcube.postinst diff --git a/jessie/alternc-roundcube.postinst b/jessie/alternc-roundcube.postinst new file mode 100644 index 00000000..0d99169d --- /dev/null +++ b/jessie/alternc-roundcube.postinst @@ -0,0 +1,49 @@ +#!/bin/bash + +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +CONFIGFILE="/etc/alternc/local.sh" +LOGROTATE="/etc/logrotate.d/roundcube-core" + +case "$1" in + configure) + + # add alternc-roundcube user for php-itk special rights + if ! getent passwd alternc-roundcube; then + useradd -g nogroup -u 1996 alternc-roundcube -d /usr/share/roundcube + fi + + # removed from 3.1 & 3.2 : + dpkg-statoverride --list /var/lib/roundcube/temp >/dev/null && + dpkg-statoverride --remove /var/lib/roundcube/temp + chown -R www-data:root /var/lib/roundcube/temp + chmod -R 750 /var/lib/roundcube/temp + + dpkg-statoverride --list /etc/roundcube/debian-db.php >/dev/null && + dpkg-statoverride --remove /etc/roundcube/debian-db.php + chown -R www-data:root /etc/roundcube/debian-db.php + chmod -R 460 /etc/roundcube/debian-db.php + + dpkg-statoverride --list /etc/roundcube/config.inc.php >/dev/null && + dpkg-statoverride --remove /etc/roundcube/config.inc.php + chown -R www-data:root /etc/roundcube/config.inc.php + chmod -R 460 /etc/roundcube/config.inc.php + + dpkg-statoverride --list /var/log/roundcube >/dev/null && + dpkg-statoverride --remove /var/log/roundcube + chown -R www-data:root /var/log/roundcube + chmod -R 750 /var/log/roundcube + + echo "**********************************************" + echo "* ALTERNC-ROUNDCUBE: *" + echo "* Please run alternc.install to fully deploy *" + echo "**********************************************" + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. +#DEBHELPER# diff --git a/jessie/patch.sh b/jessie/patch.sh index 84b290b4..65434bc0 100755 --- a/jessie/patch.sh +++ b/jessie/patch.sh @@ -21,6 +21,7 @@ cp roundcube.config.inc.php ../roundcube/templates/roundcube/config.inc.php rm ../roundcube/templates/roundcube/main.inc.php cp roundcube.password.config.inc.php ../roundcube/templates/roundcube/plugins/password/config.inc.php cp roundcube-install ../roundcube/ +cp alternc-roundcube.postinst ../debian/ # alternc-ssl package : cp ssl.conf ../ssl/