Bugfixes awstats

This commit is contained in:
Axel ROGER 2013-03-06 13:29:53 +00:00
parent d8b5856179
commit b7e10ba679
2 changed files with 4 additions and 1 deletions

View File

@ -712,6 +712,8 @@ class m_aws {
$f=fopen($this->CONFDIR."/awstats.".$hostname.".conf","wb");
fputs($f,$s,strlen($s));
fclose($f);
return true;
}

View File

@ -71,7 +71,8 @@ EOF
chown alterncpanel:root /var/cache/awstats
# Update rights on previous user's awstats configuration files
chown alterncpanel:alterncpanel /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
# ADD menu item :
if ! grep -q "^menu_aws.php$" "$MENUFILE"; then