Code

collectd.postinst: Remove swap-reserved.rrd after migration.
[pkg-collectd.git] / debian / collectd.postinst
index 122068a943a960762b08c5f63c6590db63d0291a..2f4d55cc076a10d6ed115ccc12f06d46e4d9aab0 100755 (executable)
@@ -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
     ;;