From: Sebastian Harl Date: Sun, 29 Apr 2007 20:06:22 +0000 (+0200) Subject: collectd.postinst: Move /tmp/collectd-4 to /var/lib/collectd. X-Git-Tag: collectd-4.0.2-1~61 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ed4eb4a332b4b8dbc8f7b9e935341aaaf2cc7093;p=pkg-collectd.git collectd.postinst: Move /tmp/collectd-4 to /var/lib/collectd. --- diff --git a/debian/collectd.postinst b/debian/collectd.postinst index d34dee4..6a2357f 100755 --- a/debian/collectd.postinst +++ b/debian/collectd.postinst @@ -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 ;;