diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-10-06 14:00:29 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-10-06 14:00:29 +0200 |
commit | 487ec589167e0357f3cbddd7a1e9cf50b1aa4032 (patch) | |
tree | 39550381c5c863c84f7098eb91574a6469a7c11a /glpi-0.90-cron.patch | |
parent | f30cd1447b77f461dd0a459652bc03399d6d7878 (diff) |
glpi: 0.90-RC2
Diffstat (limited to 'glpi-0.90-cron.patch')
-rw-r--r-- | glpi-0.90-cron.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/glpi-0.90-cron.patch b/glpi-0.90-cron.patch new file mode 100644 index 0000000..7a9eba7 --- /dev/null +++ b/glpi-0.90-cron.patch @@ -0,0 +1,28 @@ +diff -up install/install.php.rpm install/install.php +--- install/install.php.rpm 2014-12-17 13:36:22.420558338 +0100 ++++ install/install.php 2014-12-17 13:38:45.278209044 +0100 +@@ -382,6 +382,10 @@ function step4 ($databasename, $newdatab + $query = "UPDATE `glpi_users` + SET `language` = NULL"; + $DB->queryOrDie($query, "4203"); ++ ++ // RPM provides a good system cron ++ $query = "UPDATE `glpi_crontasks` SET `mode`=2 WHERE `name`!='watcher' AND (`allowmode` & 2)"; ++ $DB->queryOrDie($query, "4203"); + } + + //Check if the port is in url +diff -up install/update.php.rpm install/update.php +--- install/update.php.rpm 2014-12-11 14:16:55.000000000 +0100 ++++ install/update.php 2014-12-17 13:36:22.420558338 +0100 +@@ -818,6 +818,10 @@ function updateDbUpTo031() { + $plugin = new Plugin(); + $plugin->unactivateAll(); + ++ // RPM provides a good system cron ++ $query = "UPDATE `glpi_crontasks` SET `mode`=2 WHERE `name`!='watcher' AND (`allowmode` & 2)"; ++ $DB->queryOrDie($query); ++ + DBmysql::optimize_tables($migration); + + return $ret; |