mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 06:28:46 +02:00
N°1092.1 Setup / MTP improvements regarding the environments folders:
- /env-production-build rights check before running setup - /env-xxx-build is no longer deleted after MTT / MTP from the ITSM Designer. This prevents permissions issue when webserver user doesn't have suffisant rights on the root folder. SVN:trunk[5023]
This commit is contained in:
@@ -947,7 +947,9 @@ class RunTimeEnvironment
|
||||
);
|
||||
$this->CommitDir(
|
||||
APPROOT.'env-'.$this->sTargetEnv,
|
||||
APPROOT.'env-'.$this->sFinalEnv
|
||||
APPROOT.'env-'.$this->sFinalEnv,
|
||||
true,
|
||||
false
|
||||
);
|
||||
|
||||
// Move the config file
|
||||
@@ -1013,14 +1015,15 @@ class RunTimeEnvironment
|
||||
*
|
||||
* @param $sSource
|
||||
* @param $sDest
|
||||
* @param bool $bSourceMustExist
|
||||
* @param boolean $bSourceMustExist
|
||||
* @param boolean $bRemoveSource If true $sSource will be removed, otherwise $sSource will just be emptied
|
||||
* @throws Exception
|
||||
*/
|
||||
protected function CommitDir($sSource, $sDest, $bSourceMustExist = true)
|
||||
protected function CommitDir($sSource, $sDest, $bSourceMustExist = true, $bRemoveSource = true)
|
||||
{
|
||||
if (file_exists($sSource))
|
||||
{
|
||||
SetupUtils::movedir($sSource, $sDest);
|
||||
SetupUtils::movedir($sSource, $sDest, $bRemoveSource);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user