summaryrefslogtreecommitdiffstats
path: root/glpi-0.83-cron.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-06-13 20:25:47 +0200
committerRemi Collet <fedora@famillecollet.com>2012-06-13 20:25:47 +0200
commit8b060f807e06e8b83bc06f8595c132f9c0e31c5a (patch)
treed1313d827368906867cf980909152ff3f84059fe /glpi-0.83-cron.patch
reorg repo
Diffstat (limited to 'glpi-0.83-cron.patch')
-rw-r--r--glpi-0.83-cron.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/glpi-0.83-cron.patch b/glpi-0.83-cron.patch
new file mode 100644
index 0000000..25906e5
--- /dev/null
+++ b/glpi-0.83-cron.patch
@@ -0,0 +1,34 @@
+diff -up install/install.php.orig install/install.php
+--- install/install.php.orig 2012-01-24 12:22:16.000000000 +0100
++++ install/install.php 2012-02-26 10:04:57.482199413 +0100
+@@ -351,6 +351,15 @@ function step4 ($host, $user, $password,
+ $query = "UPDATE `glpi_users`
+ SET `language` = NULL";
+ $DB->query($query) or die("4203 ".$LANG['update'][90].$DB->error());
++
++ // RPM provides a good system cron
++ $query = "UPDATE `glpi_crontasks` SET `mode`=2 WHERE `name`!='watcher' AND (`allowmode` & 2)";
++ $DB->query($query)
++ or die("RPM update of glpi_crontasks. " . $LANG['update'][90] . $DB->error());
++
++ $query = "UPDATE `glpi_configs` SET `cron_limit` = '3'";
++ $DB->query($query)
++ or die("RPM update of glpi_configs. " . $LANG['update'][90] . $DB->error());
+ }
+
+
+diff -up install/update.php.orig install/update.php
+--- install/update.php.orig 2012-02-09 21:19:30.000000000 +0100
++++ install/update.php 2012-02-26 10:07:24.899206029 +0100
+@@ -770,6 +770,11 @@ 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->query($query)
++ or die("RPM update of glpi_crontasks. " . $LANG['update'][90] . $DB->error());
++
+ DBmysql::optimize_tables($migration);
+
+ return $ret;