mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 22:48:45 +02:00
N°2240 - Supportability - Maintenance mode (setup)
This commit is contained in:
@@ -117,6 +117,8 @@ class ApplicationInstaller
|
||||
try
|
||||
{
|
||||
$fStart = microtime(true);
|
||||
// Enter in maintenance mode
|
||||
@touch(APPROOT.'.maintenance');
|
||||
switch ($sStep)
|
||||
{
|
||||
case '':
|
||||
@@ -339,11 +341,16 @@ class ApplicationInstaller
|
||||
'percentage-completed' => 100,
|
||||
);
|
||||
}
|
||||
// Exit maintenance mode
|
||||
@unlink(APPROOT.'.maintenance');
|
||||
$fDuration = round(microtime(true) - $fStart, 2);
|
||||
SetupPage::log_info("##### STEP {$sStep} duration: {$fDuration}s");
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
// Exit maintenance mode
|
||||
@unlink(APPROOT.'.maintenance');
|
||||
|
||||
$aResult = array(
|
||||
'status' => self::ERROR,
|
||||
'message' => $e->getMessage(),
|
||||
|
||||
Reference in New Issue
Block a user