From: Sebastian Harl Date: Wed, 2 May 2007 06:12:09 +0000 (+0200) Subject: collectd.postinst: Remove swap-reserved.rrd after migration. X-Git-Tag: collectd-4.0.2-1~45^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ba5886e4565a94c1c5d67e90417427d07eb0869a;p=pkg-collectd.git collectd.postinst: Remove swap-reserved.rrd after migration. Reserved swap is only available on Solaris. --- diff --git a/debian/collectd.postinst b/debian/collectd.postinst index 122068a..2f4d55c 100755 --- a/debian/collectd.postinst +++ b/debian/collectd.postinst @@ -36,6 +36,9 @@ case "$1" in mkdir /var/lib/collectd/ mv $tmpdir /var/lib/collectd/rrd chmod 0755 /var/lib/collectd/rrd + + # this is only available on Solaris using libkstat + rm -f /var/lib/collectd/rrd/$hostname/swap/swap-reserved.rrd fi ;;