2012-12-05 13:41:38 +00:00
|
|
|
#!/bin/bash
|
2012-10-29 17:19:23 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Source debconf library.
|
|
|
|
. /usr/share/debconf/confmodule
|
|
|
|
|
|
|
|
CONFIGFILE="/etc/alternc/local.sh"
|
2012-12-05 13:41:38 +00:00
|
|
|
LOGROTATE="/etc/logrotate.d/roundcube-core"
|
2012-10-29 17:19:23 +00:00
|
|
|
|
|
|
|
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
|
2012-12-05 13:41:38 +00:00
|
|
|
fi
|
2014-03-27 17:01:17 +00:00
|
|
|
|
|
|
|
# removed from 3.1 & 3.2 :
|
|
|
|
dpkg-statoverride --list /var/lib/roundcube/temp >/dev/null &&
|
2014-03-27 17:06:36 +00:00
|
|
|
dpkg-statoverride --remove /var/lib/roundcube/temp
|
2014-03-27 17:01:17 +00:00
|
|
|
chown -R www-data:root /var/lib/roundcube/temp
|
2012-10-29 17:19:23 +00:00
|
|
|
chmod -R 750 /var/lib/roundcube/temp
|
|
|
|
|
2014-03-27 17:01:17 +00:00
|
|
|
dpkg-statoverride --list /etc/roundcube/debian-db.php >/dev/null &&
|
2014-03-27 17:06:36 +00:00
|
|
|
dpkg-statoverride --remove /etc/roundcube/debian-db.php
|
|
|
|
chown -R www-data:root /etc/roundcube/debian-db.php
|
2012-10-29 17:19:23 +00:00
|
|
|
chmod -R 460 /etc/roundcube/debian-db.php
|
|
|
|
|
2014-03-27 17:01:17 +00:00
|
|
|
dpkg-statoverride --list /etc/roundcube/main.inc.php >/dev/null &&
|
2014-03-27 17:06:36 +00:00
|
|
|
dpkg-statoverride --remove /etc/roundcube/main.inc.php
|
2014-03-27 17:01:17 +00:00
|
|
|
chown -R www-data:root /etc/roundcube/main.inc.php
|
2012-10-29 17:19:23 +00:00
|
|
|
chmod -R 460 /etc/roundcube/main.inc.php
|
|
|
|
|
2014-03-27 17:01:17 +00:00
|
|
|
dpkg-statoverride --list /var/log/roundcube >/dev/null &&
|
2014-03-27 17:06:36 +00:00
|
|
|
dpkg-statoverride --remove /var/log/roundcube
|
2014-03-27 17:01:17 +00:00
|
|
|
chown -R www-data:root /var/log/roundcube
|
2012-12-05 13:41:38 +00:00
|
|
|
chmod -R 750 /var/log/roundcube
|
|
|
|
|
2012-10-29 17:19:23 +00:00
|
|
|
echo "**********************************************"
|
|
|
|
echo "* ALTERNC-ROUNDCUBE: *"
|
|
|
|
echo "* Please run alternc.install to fully deploy *"
|
|
|
|
echo "**********************************************"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2013-02-03 13:39:30 +00:00
|
|
|
# dh_installdeb will replace this with shell code automatically
|
|
|
|
# generated by other debhelper scripts.
|
|
|
|
#DEBHELPER#
|