Fix indexation script and protection for concurrency with cron

This commit is contained in:
Eric
2021-02-26 14:05:26 +01:00
parent 6a5c47887a
commit 925e45782c

View File

@@ -10,10 +10,12 @@ use Combodo\iTop\CoreUpdate\Controller\UpdateController;
use ContextTag;
require_once(APPROOT.'application/startup.inc.php');
new ContextTag(ContextTag::TAG_SETUP);
$oCtxCoreUpdate = new ContextTag(ContextTag::TAG_SETUP);
$oUpdateController = new UpdateController(MODULESROOT.'itop-core-update/view', 'itop-core-update');
$oUpdateController->DisableInDemoMode();
$oUpdateController->AllowOnlyAdmin();
$oUpdateController->SetDefaultOperation('SelectUpdateFile');
$oUpdateController->HandleOperation();
unset($oCtxCoreUpdate);