N°2240 - Supportability - Maintenance mode

This commit is contained in:
Eric
2019-11-13 12:00:50 +01:00
parent 149bc9f4ef
commit 7a12c2c615

View File

@@ -119,15 +119,15 @@ class MFCompiler
{
$oConfig = null;
}
if (($this->sEnvironment == 'production') && !$bIsAlreadyInMaintenanceMode)
{
SetupUtils::EnterMaintenanceMode($oConfig);
}
if ($bUseSymbolicLinks || $bSkipTempDir)
{
// Skip the creation of a temporary dictionary, not compatible with symbolic links
$sTempTargetDir = $sFinalTargetDir;
if (($this->sEnvironment == 'production') && !$bIsAlreadyInMaintenanceMode)
{
SetupUtils::EnterMaintenanceMode($oConfig);
}
}
else
{
@@ -155,10 +155,6 @@ class MFCompiler
if ($sTempTargetDir != $sFinalTargetDir)
{
// Move the results to the target directory
if (($this->sEnvironment == 'production') && !$bIsAlreadyInMaintenanceMode)
{
SetupUtils::EnterMaintenanceMode($oConfig);
}
SetupUtils::movedir($sTempTargetDir, $sFinalTargetDir);
}
if (($this->sEnvironment == 'production') && !$bIsAlreadyInMaintenanceMode)