Code

Get ready for next release
[pkg-nagvis.git] / debian / postrm
index f1b9e50a112358c2775aed678100037a5ca46a90..3535fedbed28cc6cf2078749b47e0cea3ac7b9a9 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# postrm script for #PACKAGE#
+# postrm script for nagvis
 #
 # see: dh_installdeb(1)
 
@@ -9,7 +9,7 @@ if [ -f /usr/share/debconf/confmodule ]; then
        . /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
@@ -39,14 +39,16 @@ case "$1" in
 esac
 
 if [ "$1" = "purge" ]; then
-       for file in apache.conf config.ini.php; do
+       for file in apache.conf nagvis.ini.php; do
                rm -f /etc/nagvis/$file
-               ucf --purge /etc/nagvis/$file
+               ucf --debconf-ok --purge /etc/nagvis/$file
        done
 
        #if [ -e /etc/apache2/conf.d/nagvis.conf ]; then
        #       rm -f /etc/apache2/conf.d/nagvis.conf
        #fi
+
+       rm -rf /var/cache/nagvis
 fi
        
 # dh_installdeb will replace this with shell code automatically