- restore still used settings in 120.system.php

- check for $createifnotexists in phpinterface_* classes
This commit is contained in:
Michael Kaufmann (d00p)
2010-12-07 11:08:41 +00:00
parent 9c075c05f5
commit 59bf7ba22f
3 changed files with 24 additions and 5 deletions

View File

@@ -215,7 +215,7 @@ class phpinterface_fcgid
{
$configdir = makeCorrectDir($this->_settings['system']['mod_fcgid_configdir'] . '/' . $this->_domain['loginname'] . '/' . $this->_domain['domain'] . '/');
if(!is_dir($configdir))
if(!is_dir($configdir) && $createifnotexists)
{
safe_exec('mkdir -p ' . escapeshellarg($configdir));
safe_exec('chown ' . $this->_domain['guid'] . ':' . $this->_domain['guid'] . ' ' . escapeshellarg($configdir));
@@ -235,7 +235,7 @@ class phpinterface_fcgid
{
$tmpdir = makeCorrectDir($this->_settings['system']['mod_fcgid_tmpdir'] . '/' . $this->_domain['loginname'] . '/');
if(!is_dir($tmpdir))
if(!is_dir($tmpdir) && $createifnotexists)
{
safe_exec('mkdir -p ' . escapeshellarg($tmpdir));
safe_exec('chown -R ' . $this->_domain['guid'] . ':' . $this->_domain['guid'] . ' ' . escapeshellarg($tmpdir));