Code

collectd-core.postinst: Pass --rrd* parameters to migrate-4-5.px.
authorSebastian Harl <sh@tokkee.org>
Thu, 12 Jul 2012 17:05:44 +0000 (19:05 +0200)
committerSebastian Harl <sh@tokkee.org>
Thu, 12 Jul 2012 17:05:44 +0000 (19:05 +0200)
… in order to let the script find those binaries/scripts.

debian/changelog
debian/collectd-core.postinst

index 23f2411f1a96d587b4259d1f2d125e97a73035d3..093f375ce28a025eb41d1732a0034248fa304b06 100644 (file)
@@ -1,8 +1,10 @@
 collectd (5.1.0-3) UNRELEASED; urgency=low
 
-  * debian/patches/migrate-4-5-df.dpatch:
+  * debian/patches/migrate-4-5-df.dpatch, debian/collectd-core.postinst:
     - Added patch to fix the migration of 'df' values in migrate-4-5.px;
       thanks to 'markuskaindl' for reporting this on IRC.
+    - Pass --rrdfilter and --rrdtool parameters to migrate-4-5.px in order to
+      let the script find those binaries/scripts.
 
  -- Sebastian Harl <tokkee@debian.org>  Thu, 12 Jul 2012 18:57:04 +0200
 
index 78dc785498893aa7d0966c0cb0c8f68c022bdd7d..b42bc6c314321aa8f73e44414e74ce7144ac1e91 100755 (executable)
@@ -45,7 +45,9 @@ case "$1" in
         if [ "$RET" = "true" ]; then
             cp -a /var/lib/collectd/ /var/backups/collectd-"$2"
             /usr/lib/collectd/utils/migrate-4-5.px \
-                -indir /var/lib/collectd/rrd/ | bash
+                --rrdfilter /usr/lib/collectd/utils/rrd_filter.px \
+                --rrdtool /usr/bin/rrdtool \
+                --indir /var/lib/collectd/rrd/ | bash
         fi
     ;;