adding postinst for squirrelmail + user alternc-squirrelmail + statoverride for /var/lib/squirrelmail and /var/spool/squirrelmail

This commit is contained in:
Benjamin Sonntag 2012-08-26 18:27:15 +00:00
parent 92b5341514
commit c8e5670c7a
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ case "$1" in
if ! getent passwd alternc-squirrelmail; then
useradd -g nogroup -u 1997 alternc-squirrelmail -d /usr/share/squirrelmail
fi
dpkg-statoverride --add alternc-squirrelmail root 0750 /var/spool/squirrelmail/attach /usr/lib/squirrelmail/data
dpkg-statoverride --add alternc-squirrelmail root 0750 /var/spool/squirrelmail/attach
dpkg-statoverride --add alternc-squirrelmail root 0750 /usr/lib/squirrelmail/data
chown -R alternc-squirrelmail:root /var/spool/squirrelmail/attach /usr/lib/squirrelmail/data
chmod -R 750 /var/spool/squirrelmail/attach /usr/lib/squirrelmail/data
;;