From 60b2fd2ac31d1941f7f8b41d57846f4b08714f61 Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Mon, 12 Aug 2013 12:47:31 +0000 Subject: [PATCH] Bugfixing html folder permission upon installation --- install/alternc.install | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/install/alternc.install b/install/alternc.install index 2a762e20..bb1a84a7 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -121,15 +121,14 @@ for i in "$ALTERNC_HTML" "$ALTERNC_MAIL" "$ALTERNC_LOGS" ; do test -d "$i" || mkdir -p "$i" done -find $ALTERNC_LOGS -maxdepth 1 -type d -exec chown alterncpanel:adm {} \; -find $ALTERNC_HTML -maxdepth 1 -type d -exec chown alterncpanel:alterncpanel {} \; -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_HTML/$i" || ( mkdir -p "$ALTERNC_HTML/$i" && chown alterncpanel:alterncpanel "$ALTERNC_HTML/$i" ) test -d "$ALTERNC_MAIL/$i" || ( mkdir -p "$ALTERNC_MAIL/$i" && chown vmail:vmail "$ALTERNC_MAIL/$i" && chmod 775 "$ALTERNC_MAIL/$i" ) done +find $ALTERNC_LOGS -maxdepth 1 -type d -exec chown alterncpanel:adm {} \; +find $ALTERNC_HTML -maxdepth 1 -type d -exec chown alterncpanel:alterncpanel {} \; +find $ALTERNC_MAIL -maxdepth 1 -type d -exec chown vmail:vmail {} \; # Check ACL aclcheckfile="$ALTERNC_HTML/test-acl"