blob: de3b6d70fc349025f8757c0d4cf9f352506bcfc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
diff -up install/install.php.orig install/install.php
--- install/install.php.orig 2013-09-29 17:04:16.326382959 +0200
+++ install/install.php 2013-09-29 17:08:07.616396210 +0200
@@ -350,6 +350,13 @@ 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");
+
+ $query = "UPDATE `glpi_configs` SET `cron_limit` = '3'";
+ $DB->queryOrDie($query, "4203");
}
$link = new mysqli($host, $user, $password);
diff -up install/update.php.orig install/update.php
--- install/update.php.orig 2013-09-12 21:17:15.000000000 +0200
+++ install/update.php 2013-09-29 17:07:53.124390070 +0200
@@ -776,6 +776,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;
|