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

@@ -140,6 +140,15 @@ class UpdateController extends Controller
$this->DisplayPage($aParams);
}
public function OperationRunSetup()
{
SetupUtils::CheckSetupToken(true);
$sConfigFile = APPCONF.'production/'.ITOP_CONFIG_FILE;
@chmod($sConfigFile, 0770);
$sRedirectURL = utils::GetAbsoluteUrlAppRoot().'setup/index.php';
header("Location: $sRedirectURL");
}
private function GetPreviousInstallations()
{
return DBToolsUtils::GetPreviousInstallations();