From b7e10ba67979c553192b9e7368c5b63e7dbeab17 Mon Sep 17 00:00:00 2001 From: Axel ROGER Date: Wed, 6 Mar 2013 13:29:53 +0000 Subject: [PATCH] Bugfixes awstats --- awstats/bureau/class/m_aws.php | 2 ++ debian/alternc-awstats.postinst | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/awstats/bureau/class/m_aws.php b/awstats/bureau/class/m_aws.php index ec8853be..c06c184b 100644 --- a/awstats/bureau/class/m_aws.php +++ b/awstats/bureau/class/m_aws.php @@ -712,6 +712,8 @@ class m_aws { $f=fopen($this->CONFDIR."/awstats.".$hostname.".conf","wb"); fputs($f,$s,strlen($s)); fclose($f); + + return true; } diff --git a/debian/alternc-awstats.postinst b/debian/alternc-awstats.postinst index d604e058..f0de4372 100755 --- a/debian/alternc-awstats.postinst +++ b/debian/alternc-awstats.postinst @@ -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