From ca5fbbf501b71936b08f39ed3e84f16f04520f52 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Wed, 27 Feb 2013 08:18:32 +0000 Subject: [PATCH] Partial fix of #1466 A merger avec branche stable 3.0 --- install/alternc.install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install/alternc.install b/install/alternc.install index 4bf33eb5..d0dce6d7 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -460,17 +460,17 @@ find $ALTERNC_HTML -maxdepth 1 -type d -exec setfacl -b -k -m d:g:alterncpanel:r 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 640 "/var/log/alternc/bureau.log" - chown alterncpanel:adm /var/log/alternc/bureau.log fi if [ ! -e "/var/log/alternc/update_domains.log" ]; then test -d "/var/log/alternc/" || mkdir -p "/var/log/alternc/" touch "/var/log/alternc/update_domains.log" - chmod 640 "/var/log/alternc/update_domains.log" - chown alterncpanel:adm /var/log/alternc/update_domains.log fi +# Be sure of the owner of the logs files +chmod 640 /var/log/alternc/bureau.log /var/log/alternc/update_domains.log +chown alterncpanel:adm /var/log/alternc/bureau.log /var/log/alternc/update_domains.log + # Creating admin user if needed HAS_ROOT=`mysql --defaults-file=/etc/alternc/my.cnf -e "SELECT COUNT(*) FROM membres WHERE login = 'admin' OR login = 'root' and su = 1" | tail -1`