Droits sur bureau.log moins laxistes
This commit is contained in:
parent
c8e553840b
commit
5787678d66
|
@ -417,8 +417,10 @@ HAS_ROOT=`mysql --defaults-file=/etc/alternc/my.cnf -e "SELECT COUNT(*) FROM mem
|
||||||
|
|
||||||
#creating log file
|
#creating log file
|
||||||
if [ ! -e "/var/log/alternc/bureau.log" ]; then
|
if [ ! -e "/var/log/alternc/bureau.log" ]; then
|
||||||
|
test -d "/var/log/alternc/" || mkdir -p "/var/log/alternc/"
|
||||||
touch "/var/log/alternc/bureau.log"
|
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
|
fi
|
||||||
|
|
||||||
if [ "$HAS_ROOT" != "1" ]; then
|
if [ "$HAS_ROOT" != "1" ]; then
|
||||||
|
|
Loading…
Reference in New Issue