2012-08-26 18:24:26 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Source debconf library.
|
|
|
|
. /usr/share/debconf/confmodule
|
|
|
|
|
|
|
|
CONFIGFILE="/etc/alternc/local.sh"
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
configure)
|
|
|
|
|
|
|
|
# add alternc-squirrelmail user for php-itk special rights
|
|
|
|
if ! getent passwd alternc-squirrelmail; then
|
2012-08-26 18:26:19 +00:00
|
|
|
useradd -g nogroup -u 1997 alternc-squirrelmail -d /usr/share/squirrelmail
|
2012-08-26 18:24:26 +00:00
|
|
|
fi
|
2012-08-26 19:59:12 +00:00
|
|
|
dpkg-statoverride --list /var/spool/squirrelmail/attach >/dev/null ||
|
2012-08-26 18:27:15 +00:00
|
|
|
dpkg-statoverride --add alternc-squirrelmail root 0750 /var/spool/squirrelmail/attach
|
2012-08-26 19:59:12 +00:00
|
|
|
dpkg-statoverride --list /var/lib/squirrelmail/data >/dev/null ||
|
|
|
|
dpkg-statoverride --add alternc-squirrelmail root 0750 /var/lib/squirrelmail/data
|
|
|
|
chown -R alternc-squirrelmail:root /var/spool/squirrelmail/attach /var/lib/squirrelmail/data
|
|
|
|
chmod -R 750 /var/spool/squirrelmail/attach /var/lib/squirrelmail/data
|
2012-08-30 12:51:17 +00:00
|
|
|
# Enable the squirrelmail plugin
|
|
|
|
squirrelmail-configure --remove-plugin alternc-changepass
|
|
|
|
squirrelmail-configure --install-plugin alternc-changepass
|
2012-08-26 18:24:26 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|