From 0257dd7376ac3acec9f85816ea0163e85f67ec2b Mon Sep 17 00:00:00 2001 From: mcramer Date: Fri, 24 Aug 2012 17:59:24 +0000 Subject: [PATCH] Bugfix again: awstats for vhost subdomains (typing error) --- server/cron_daily.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/cron_daily.php b/server/cron_daily.php index ec398a824..0ba19fb71 100644 --- a/server/cron_daily.php +++ b/server/cron_daily.php @@ -238,7 +238,7 @@ HostAliases="www.'.$domain.' localhost 127.0.0.1'.$aliasdomain.'"'; exec($command); if(is_file($rec['document_root'].'/'.$web_folder.'/stats/index.html')) unlink($rec['document_root'].'/'.$web_folder.'/stats/index.html'); rename($rec['document_root'].'/'.$web_folder.'/stats/awstats.'.$domain.'.html',$rec['document_root'].'/'.$web_folder.'/stats/awsindex.html'); - if(!is_file($rec['document_root']."/'.$web_folder.'/stats/index.php")) copy("/usr/local/ispconfig/server/conf/awstats_index.php.master",$rec['document_root']."/".$web_folder."/stats/index.php"); + if(!is_file($rec['document_root']."/".$web_folder."/stats/index.php")) copy("/usr/local/ispconfig/server/conf/awstats_index.php.master",$rec['document_root']."/".$web_folder."/stats/index.php"); $app->log('Created awstats statistics with command: '.$command,LOGLEVEL_DEBUG); } else { -- GitLab