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~50 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d663b793b79558ab1c0f57fcbf6543eaa78e024d;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 ;;