Code

collectd.postinst: Move /tmp/collectd-4 to /var/lib/collectd.
authorSebastian Harl <sh@tokkee.org>
Sun, 29 Apr 2007 20:06:22 +0000 (22:06 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 2 May 2007 18:00:53 +0000 (18:00 +0000)
debian/collectd.postinst

index d34dee4a7544fc428b13da799d121c569c0c1a3a..6a2357fc26fc8a2bf70d1aba356f29ec8ae1b150 100755 (executable)
@@ -25,6 +25,8 @@ case "$1" in
         if [ "$RET" = "true" ]; then
             cp -a /var/lib/collectd/ /var/backups/collectd-"$2"
             /usr/lib/collectd/utils/migrate-3-4.px | bash
+            rm -rf /var/lib/collectd/
+            mv /tmp/collectd-4/ /var/lib/collectd/
         fi
     ;;