AlternC/debian/alternc-roundcube.postinst

45 lines
1.4 KiB
Plaintext
Raw Normal View History

#!/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)
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
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
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
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
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#