N°2240 - Supportability - Maintenance mode exit on MTP or core update error

This commit is contained in:
Eric
2020-01-10 15:31:59 +01:00
parent ad821e7d9c
commit 21199fce34

View File

@@ -161,6 +161,10 @@ class MFCompiler
// Move the results to the target directory
SetupUtils::movedir($sTempTargetDir, $sFinalTargetDir);
}
if (($this->sEnvironment == 'production') && !$bIsAlreadyInMaintenanceMode)
{
SetupUtils::ExitMaintenanceMode();
}
// Reset the opcache since otherwise the PHP "model" files may still be cached !!
// In case of bad luck (this happens **sometimes** - see N. 550), we may analyze the database structure