diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-09-29 17:48:52 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-09-29 17:48:52 +0200 |
commit | ce129625274030609afb4c4d8d48cf10eb604c18 (patch) | |
tree | 42b2ac89df06725423ddb24290cc8bb70237ab7b /glpi-0.83-cron.patch | |
parent | 4450a3b9d83bf670684cd25b741877bafc642ea4 (diff) |
glpi: 0.84.2 (WIP)
Diffstat (limited to 'glpi-0.83-cron.patch')
-rw-r--r-- | glpi-0.83-cron.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/glpi-0.83-cron.patch b/glpi-0.83-cron.patch deleted file mode 100644 index 25906e5..0000000 --- a/glpi-0.83-cron.patch +++ /dev/null @@ -1,34 +0,0 @@ -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; |