From 21199fce343e3b7ac55deef6bfcd6f8c6a49dd5f Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 10 Jan 2020 15:31:59 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B02240=20-=20Supportability=20-=20Maintena?= =?UTF-8?q?nce=20mode=20exit=20on=20MTP=20or=20core=20update=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup/compiler.class.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/compiler.class.inc.php b/setup/compiler.class.inc.php index e87dcee72..803a771e9 100644 --- a/setup/compiler.class.inc.php +++ b/setup/compiler.class.inc.php @@ -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