From 072ac6bdcea11e2c17fa62276cd8406f7db311f0 Mon Sep 17 00:00:00 2001 From: Axel ROGER Date: Tue, 2 Apr 2013 08:41:26 +0000 Subject: [PATCH] Fixes #1460 --- debian/alternc-awstats.postinst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/alternc-awstats.postinst b/debian/alternc-awstats.postinst index f0de4372..84968eb9 100755 --- a/debian/alternc-awstats.postinst +++ b/debian/alternc-awstats.postinst @@ -45,7 +45,7 @@ LogFormat="%host %other %logname %time1 %methodurl %code %bytesd %refererquot %u EOF fi chown alterncpanel:root $LOGAPACHE - chmod 640 $LOGAPACHE + chmod 644 $LOGAPACHE fi if [ -x /usr/sbin/apache-ssl ]; then @@ -68,11 +68,12 @@ EOF chmod 640 /etc/alternc/awstats.htpasswd chmod 755 /etc/awstats mkdir -p /var/cache/awstats - chown alterncpanel:root /var/cache/awstats + chown alterncpanel:www-data /var/cache/awstats + chmod 770 /var/cache/awstats # Update rights on previous user's awstats configuration files chown alterncpanel:root /etc/awstats/awstats.*.conf > /dev/null 2>&1 - chown alterncpanel:alterncpanel /var/cache/awstats/* > /dev/null 2>&1 + chmod 644 /etc/awstats/awstats.log.alternc.conf # ADD menu item : if ! grep -q "^menu_aws.php$" "$MENUFILE"; then