From 5061c0a82fb7edb742515699864106b27a1ca4c3 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Tue, 10 Jan 2012 05:28:57 -0500 Subject: [PATCH] Improved awstats script. --- server/cron_daily.php | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/cron_daily.php b/server/cron_daily.php index 2ff012d..3f86a26 100644 --- a/server/cron_daily.php +++ b/server/cron_daily.php @@ -240,16 +240,16 @@ rename($rec['document_root'].'/web/stats/awstats.'.$domain.'.html',$rec['document_root'].'/web/stats/awsindex.html'); if(!is_file($rec['document_root']."/web/stats/index.php")) copy("/usr/local/ispconfig/server/conf/awstats_index.php.master",$rec['document_root']."/web/stats/index.php"); - if(is_file($rec['document_root']."/web/stats/index.php")) { - chown($rec['document_root']."/web/stats/index.php",$rec['system_user']); - chgrp($rec['document_root']."/web/stats/index.php",$rec['system_group']); - } - $app->log('Created awstats statistics with command: '.$command,LOGLEVEL_DEBUG); } else { $app->log("No awstats statistics created. Either $awstats_pl or $awstats_buildstaticpages_pl is not owned by root user.",LOGLEVEL_WARN); } + if(is_file($rec['document_root']."/web/stats/index.php")) { + chown($rec['document_root']."/web/stats/index.php",$rec['system_user']); + chgrp($rec['document_root']."/web/stats/index.php",$rec['system_group']); + } + } -- Gitblit v1.9.1