From 5787678d6668c4a13e19c4bcdece9f89aaa5a6d5 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Thu, 8 Nov 2012 19:33:31 +0000 Subject: [PATCH] Droits sur bureau.log moins laxistes --- install/alternc.install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/alternc.install b/install/alternc.install index 001f008b..1cf0b386 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -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