From e4436b6f49d3060a500b505434d35f7ea745aca2 Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Wed, 24 Apr 2013 14:34:54 +0000 Subject: [PATCH] In alternc 3.1 the mail [a..z] folders are created in alternc.install ( so we need to set their perms there ) --- install/alternc.install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/alternc.install b/install/alternc.install index f6e0f4ca..94df3307 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -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"