summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e6038cf)
raw | patch | inline | side by side (parent: e6038cf)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 30 Apr 2007 16:10:03 +0000 (18:10 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 30 Apr 2007 16:10:03 +0000 (18:10 +0200) |
debian/collectd.postinst | patch | blob | history |
index 6a2357fc26fc8a2bf70d1aba356f29ec8ae1b150..82cfa51eaee73deeaab1e3b74f7bb51cd148716f 100755 (executable)
--- a/debian/collectd.postinst
+++ b/debian/collectd.postinst
configure)
db_get collectd/auto-migrate-3-4
if [ "$RET" = "true" ]; then
+ tmpdir=`mktemp -dt collectd.XXXXXXXXXX`
+
cp -a /var/lib/collectd/ /var/backups/collectd-"$2"
- /usr/lib/collectd/utils/migrate-3-4.px | bash
+ /usr/lib/collectd/utils/migrate-3-4.px -o $tmpdir | bash
+
rm -rf /var/lib/collectd/
- mv /tmp/collectd-4/ /var/lib/collectd/
+ mv $tmpdir /var/lib/collectd/
fi
;;