diff --git a/debian/postrm b/debian/postrm
index fa212e61ff71822e726e43b0a5cde2fa77dc7a35..3535fedbed28cc6cf2078749b47e0cea3ac7b9a9 100644 (file)
--- a/debian/postrm
+++ b/debian/postrm
#!/bin/sh
-# postrm script for #PACKAGE#
+# postrm script for nagvis
#
# see: dh_installdeb(1)
. /usr/share/debconf/confmodule
fi
-if [ -f /usr/share/dbconfig-common/dpkg/postrm.@@DB@@ ]; then
+if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then
. /usr/share/dbconfig-common/dpkg/frontend.postrm.mysql
dbc_go nagvis $@
fi
# rm -f /etc/apache2/conf.d/nagvis.conf
#fi
- rm -f /var/cache/nagvis/*
- rmdir /var/cache/nagvis
+ rm -rf /var/cache/nagvis
fi
# dh_installdeb will replace this with shell code automatically