[Pkg-cacti-maint] Bug#866773: Upgrade trouble because of upgrade_file path in update_database.php is wrong
ISHIKAWA Mutsumi
ishikawa at debian.org
Sat Jul 1 15:42:37 UTC 2017
Package: cacti
Version: 1.1.10+ds1-5
Severity: important
Tag: patch
Upgrade previous version 0.8.8h+ds1-9 in unstable to current
version 1.1.10+ds1-5 will cause trouble. Web UI and poller will
stop to work completely.
database upgrade script file path in
/usr/share/cacti/cli/upgrade_database.php is wrong, so the script
nothing to do.
--- cacti-1.1.10+ds1/cli/upgrade_database.php~ 2017-07-02 00:02:52.000000000 +0900
+++ cacti-1.1.10+ds1/cli/upgrade_database.php 2017-07-02 00:06:24.120721633 +0900
@@ -118,7 +118,7 @@
}
// construct version upgrade include path
- $upgrade_file = dirname(__FILE__) . '/../install/upgrades/' . str_replace('.', '_', $cacti_version) . '.php';
+ $upgrade_file = dirname(__FILE__) . '/../site/install/upgrades/' . str_replace('.', '_', $cacti_version) . '.php';
$upgrade_function = 'upgrade_to_' . str_replace('.', '_', $cacti_version);
// check for upgrade version file, then include, check for function and execute
--
ISHIKAWA Mutsumi
<ishikawa at debian.org>, <ishikawa at hanzubon.jp>, <ishikawa at osdn.jp>
More information about the Pkg-cacti-maint
mailing list