This commit is contained in:
Axel ROGER 2013-04-02 08:41:26 +00:00
parent 873746176f
commit 072ac6bdce
1 changed files with 4 additions and 3 deletions

View File

@ -45,7 +45,7 @@ LogFormat="%host %other %logname %time1 %methodurl %code %bytesd %refererquot %u
EOF EOF
fi fi
chown alterncpanel:root $LOGAPACHE chown alterncpanel:root $LOGAPACHE
chmod 640 $LOGAPACHE chmod 644 $LOGAPACHE
fi fi
if [ -x /usr/sbin/apache-ssl ]; then if [ -x /usr/sbin/apache-ssl ]; then
@ -68,11 +68,12 @@ EOF
chmod 640 /etc/alternc/awstats.htpasswd chmod 640 /etc/alternc/awstats.htpasswd
chmod 755 /etc/awstats chmod 755 /etc/awstats
mkdir -p /var/cache/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 # Update rights on previous user's awstats configuration files
chown alterncpanel:root /etc/awstats/awstats.*.conf > /dev/null 2>&1 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 : # ADD menu item :
if ! grep -q "^menu_aws.php$" "$MENUFILE"; then if ! grep -q "^menu_aws.php$" "$MENUFILE"; then