blob: 7a9eba7db9b8a00d6dd8b19d77b95698dd4f0fe3 (
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
|
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;
|