Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(install): time limit when upgrading from glpi
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry authored and DIOHz0r committed Sep 7, 2018
1 parent d28308a commit 081a8cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions install/install.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,10 @@ public function upgrade(Migration $migration) {
$this->migration = $migration;
$fromSchemaVersion = $this->getSchemaVersion();

// Prevent problem of execution time
ini_set("max_execution_time", "0");
ini_set("memory_limit", "-1");

switch ($fromSchemaVersion) {
case '0.0':
// Upgrade to 2.0
Expand Down
4 changes: 1 addition & 3 deletions tools/cli_install.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@
define("GLPI_CONFIG_DIR", GLPI_ROOT . "/tests");
}

// Prevent problem of execution time
ini_set("max_execution_time", "0");
ini_set("memory_limit", "-1");
// disable session cookie for CLI mode
ini_set("session.use_cookies", "0");

include (__DIR__ . "/../../../inc/includes.php");
Expand Down

0 comments on commit 081a8cd

Please sign in to comment.