- pass month/year parameter to awstats, fixes #240

refs #240
This commit is contained in:
Michael Kaufmann (d00p)
2010-09-13 06:07:39 +00:00
parent b1b2eec21f
commit 719fac7f88

View File

@@ -87,7 +87,7 @@ function awstatsDoSingleDomain($domain, $outputdir)
}
$cronlog->logAction(CRON_ACTION, LOG_INFO, "Running awstats_buildstaticpages.pl for domain '".$domain."' (Output: '".$outputdir."')");
safe_exec($awbsp.' -awstatsprog='.escapeshellarg($awprog).' -update -config=' . $domain . ' -dir='.escapeshellarg($outputdir));
safe_exec($awbsp.' -awstatsprog='.escapeshellarg($awprog).' -update -month=' . date('n') . ' -year=' . date('Y') . ' -config=' . $domain . ' -dir='.escapeshellarg($outputdir));
/**
* index file is saved like 'awstats.[domain].html',