adding postinst for squirrelmail + user alternc-squirrelmail + statoverride for /var/lib/squirrelmail and /var/spool/squirrelmail
This commit is contained in:
parent
92b5341514
commit
c8e5670c7a
|
@ -14,7 +14,8 @@ case "$1" in
|
||||||
if ! getent passwd alternc-squirrelmail; then
|
if ! getent passwd alternc-squirrelmail; then
|
||||||
useradd -g nogroup -u 1997 alternc-squirrelmail -d /usr/share/squirrelmail
|
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
|
||||||
|
dpkg-statoverride --add alternc-squirrelmail root 0750 /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
|
||||||
chmod -R 750 /var/spool/squirrelmail/attach /usr/lib/squirrelmail/data
|
chmod -R 750 /var/spool/squirrelmail/attach /usr/lib/squirrelmail/data
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue