-create awstats-configuration-folder if it does not exist

This commit is contained in:
Michael Kaufmann (d00p)
2010-04-09 12:04:09 +00:00
parent 220118f4bc
commit 5a4fffbce6

View File

@@ -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