chowning aquota.group file is not possible or allowed
This commit is contained in:
parent
4a7144e257
commit
80c5b3fdb1
|
@ -129,9 +129,9 @@ for i in "$ALTERNC_HTML" "$ALTERNC_MAIL" "$ALTERNC_LOGS" ; do
|
||||||
test -d "$i" || mkdir -p "$i"
|
test -d "$i" || mkdir -p "$i"
|
||||||
done
|
done
|
||||||
|
|
||||||
chown alterncpanel:adm "$ALTERNC_LOGS"
|
find $ALTERNC_LOGS -maxdepth 1 -type d -exec chown alterncpanel:adm {} \;
|
||||||
chown www-data:www-data "$ALTERNC_HTML"
|
find $ALTERNC_HTML -maxdepth 1 -type d -exec chown alterncpanel:alterncpanel {} \;
|
||||||
chown vmail:vmail "$ALTERNC_MAIL"
|
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
|
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 www-data:www-data "$ALTERNC_HTML/$i" )
|
||||||
|
@ -454,8 +454,7 @@ if [ "$slave" = "1" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown alterncpanel:alterncpanel "$ALTERNC_HTML/"*
|
find $ALTERNC_HTML -maxdepth 1 -type d -exec setfacl -b -k -m d:g:alterncpanel:rw- -m g:alterncpanel:rw- {} \;
|
||||||
setfacl -b -k -m d:g:alterncpanel:rw- -m g:alterncpanel:rw- "$ALTERNC_HTML/"*
|
|
||||||
|
|
||||||
#creating log file
|
#creating log file
|
||||||
if [ ! -e "/var/log/alternc/bureau.log" ]; then
|
if [ ! -e "/var/log/alternc/bureau.log" ]; then
|
||||||
|
|
Loading…
Reference in New Issue