From 5a4fffbce6ef913747478aef42b9d2154af58bad Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Fri, 9 Apr 2010 12:04:09 +0000 Subject: [PATCH] -create awstats-configuration-folder if it does not exist --- lib/functions/froxlor/function.createAWStatsConf.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/functions/froxlor/function.createAWStatsConf.php b/lib/functions/froxlor/function.createAWStatsConf.php index 4dcc977b..a422739e 100644 --- a/lib/functions/froxlor/function.createAWStatsConf.php +++ b/lib/functions/froxlor/function.createAWStatsConf.php @@ -41,6 +41,12 @@ function createAWStatsConf($logFile, $siteDomain, $hostAliases, $customerDocroot { safe_exec('mkdir -p '.escapeshellarg($awstats_dir)); } + + // weird but could happen... + if(!is_dir($settings['system']['awstats_conf'])) + { + safe_exec('mkdir -p '.escapeshellarg($settings['system']['awstats_conf'])); + } // These are the variables we will replace