N°2249 - Supportability - Updater module (Allow to run setup in case of failure)

This commit is contained in:
Eric
2020-01-16 10:49:49 +01:00
parent 8024aad43d
commit cc3e6d64e1
10 changed files with 51 additions and 10 deletions

View File

@@ -79,6 +79,7 @@ class AjaxController extends Controller
$aParams = array();
try
{
SetupUtils::CheckSetupToken();
SetupUtils::EnterReadOnlyMode(MetaModel::GetConfig());
$iResponseCode = 200;
} catch (Exception $e)
@@ -95,6 +96,7 @@ class AjaxController extends Controller
$aParams = array();
try
{
SetupUtils::CheckSetupToken(true);
SetupUtils::ExitReadOnlyMode();
$iResponseCode = 200;
} catch (Exception $e)
@@ -111,6 +113,7 @@ class AjaxController extends Controller
$aParams = array();
try
{
SetupUtils::CheckSetupToken();
CoreUpdater::Backup();
$iResponseCode = 200;
} catch (Exception $e)
@@ -127,6 +130,7 @@ class AjaxController extends Controller
$aParams = array();
try
{
SetupUtils::CheckSetupToken();
CoreUpdater::CreateItopArchive();
$iResponseCode = 200;
} catch (Exception $e)
@@ -143,6 +147,7 @@ class AjaxController extends Controller
$aParams = array();
try
{
SetupUtils::CheckSetupToken();
CoreUpdater::CopyCoreFiles();
$iResponseCode = 200;
} catch (Exception $e)
@@ -160,6 +165,7 @@ class AjaxController extends Controller
$aParams = array();
try
{
SetupUtils::CheckSetupToken();
CoreUpdater::CheckCompile();
$iResponseCode = 200;
}
@@ -178,6 +184,7 @@ class AjaxController extends Controller
$aParams = array();
try
{
SetupUtils::CheckSetupToken();
CoreUpdater::Compile();
$iResponseCode = 200;
}
@@ -196,6 +203,7 @@ class AjaxController extends Controller
$aParams = array();
try
{
SetupUtils::CheckSetupToken();
CoreUpdater::UpdateDatabase();
$iResponseCode = 200;
}