Droits sur bureau.log moins laxistes

This commit is contained in:
Alan Garcia 2012-11-08 19:33:31 +00:00
parent c8e553840b
commit 5787678d66
1 changed files with 3 additions and 1 deletions

View File

@ -417,8 +417,10 @@ HAS_ROOT=`mysql --defaults-file=/etc/alternc/my.cnf -e "SELECT COUNT(*) FROM mem
#creating log file
if [ ! -e "/var/log/alternc/bureau.log" ]; then
test -d "/var/log/alternc/" || mkdir -p "/var/log/alternc/"
touch "/var/log/alternc/bureau.log"
chmod 644 "/var/log/alternc/bureau.log"
chmod 640 "/var/log/alternc/bureau.log"
chown alterncpanel:adm /var/log/alternc/bureau.log
fi
if [ "$HAS_ROOT" != "1" ]; then