Code

Working on 1.6.4 package
[pkg-nagvis.git] / debian / postrm
1 #!/bin/sh
2 # postrm script for nagvis
3 #
4 # see: dh_installdeb(1)
6 set -e
8 case "$1" in
9     purge)
10         for file in apache.conf nagvis.ini.php; do
11                 rm -f /etc/nagvis/$file
12                 if [ -x /usr/bin/ucf ] ; then
13                         ucf --debconf-ok --purge /etc/nagvis/$file
14                 fi
15         done
16         rm -rf /var/cache/nagvis
17     ;;
18     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
19     ;;
20     *)
21         echo "postrm called with unknown argument \`$1'" >&2
22         exit 1
23     ;;
24 esac
26 # dh_installdeb will replace this with shell code automatically
27 # generated by other debhelper scripts.
29 #DEBHELPER#
31 exit 0