In alternc 3.1 the mail [a..z] folders are created in alternc.install ( so we need to set their perms there )

This commit is contained in:
Steven Mondji-Lerider 2013-04-24 14:34:54 +00:00
parent b3df1b0b2a
commit e4436b6f49
1 changed files with 2 additions and 1 deletions

View File

@ -127,9 +127,10 @@ find $ALTERNC_MAIL -maxdepth 1 -type d -exec chown vmail:vmail {} \;
for i in a b c d e f g h i j k l m n o p q r s t u v w x y z _ 0 1 2 3 4 5 6 7 8 9; do
test -d "$ALTERNC_HTML/$i" || ( mkdir -p "$ALTERNC_HTML/$i" && chown www-data:www-data "$ALTERNC_HTML/$i" )
test -d "$ALTERNC_MAIL/$i" || ( mkdir -p "$ALTERNC_MAIL/$i" && chown vmail:vmail "$ALTERNC_MAIL/$i" )
test -d "$ALTERNC_MAIL/$i" || ( mkdir -p "$ALTERNC_MAIL/$i" && chown vmail:vmail "$ALTERNC_MAIL/$i" && chmod 775 "$ALTERNC_MAIL/$i" )
done
# Check ACL
aclcheckfile="$ALTERNC_HTML/test-acl"
touch "$aclcheckfile"