- chown newly created awstats-directory when new domain has been created, fixes #258

This commit is contained in:
Michael Kaufmann (d00p)
2010-10-19 19:32:53 +00:00
parent fc5aea1c33
commit ce83e8f92b
3 changed files with 17 additions and 3 deletions

View File

@@ -27,7 +27,7 @@
* @return null
*/
function createAWStatsConf($logFile, $siteDomain, $hostAliases, $customerDocroot)
function createAWStatsConf($logFile, $siteDomain, $hostAliases, $customerDocroot, $awstats_params = array())
{
global $pathtophpfiles, $settings;
@@ -41,6 +41,8 @@ function createAWStatsConf($logFile, $siteDomain, $hostAliases, $customerDocroot
{
safe_exec('mkdir -p '.escapeshellarg($awstats_dir));
}
// chown created folder, #258
makeChownWithNewStats($awstats_params);
// weird but could happen...
if(!is_dir($settings['system']['awstats_conf']))