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:26:19 +00:00
parent 5df2cb4e98
commit c03fa7f543
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ case "$1" in
# add alternc-squirrelmail user for php-itk special rights # add alternc-squirrelmail user for php-itk special rights
if ! getent passwd alternc-squirrelmail; then if ! getent passwd alternc-squirrelmail; then
useradd -g alternc-squirrelmail -u 1997 alternc-squirrelmail -d /usr/share/squirrelmail -m useradd -g nogroup -u 1997 alternc-squirrelmail -d /usr/share/squirrelmail
fi 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 /usr/lib/squirrelmail/data
chown -R alternc-squirrelmail:root /var/spool/squirrelmail/attach /usr/lib/squirrelmail/data chown -R alternc-squirrelmail:root /var/spool/squirrelmail/attach /usr/lib/squirrelmail/data