1 #!/bin/sh
2 # postrm script for #PACKAGE#
3 #
4 # see: dh_installdeb(1)
6 set -e
8 if [ -f /usr/share/debconf/confmodule ]; then
9 . /usr/share/debconf/confmodule
10 fi
12 if [ -f /usr/share/dbconfig-common/dpkg/postrm.@@DB@@ ]; then
13 . /usr/share/dbconfig-common/dpkg/frontend.postrm.mysql
14 dbc_go nagvis $@
15 fi
17 # summary of how this script can be called:
18 # * <postrm> `remove'
19 # * <postrm> `purge'
20 # * <old-postrm> `upgrade' <new-version>
21 # * <new-postrm> `failed-upgrade' <old-version>
22 # * <new-postrm> `abort-install'
23 # * <new-postrm> `abort-install' <old-version>
24 # * <new-postrm> `abort-upgrade' <old-version>
25 # * <disappearer's-postrm> `disappear' <overwriter>
26 # <overwriter-version>
27 # for details, see http://www.debian.org/doc/debian-policy/ or
28 # the debian-policy package
31 case "$1" in
32 purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
33 ;;
35 *)
36 echo "postrm called with unknown argument \`$1'" >&2
37 exit 1
38 ;;
39 esac
41 if [ "$1" = "purge" ]; then
42 for file in apache.conf nagvis.ini.php; do
43 rm -f /etc/nagvis/$file
44 ucf --purge /etc/nagvis/$file
45 done
47 #if [ -e /etc/apache2/conf.d/nagvis.conf ]; then
48 # rm -f /etc/apache2/conf.d/nagvis.conf
49 #fi
50 fi
52 # dh_installdeb will replace this with shell code automatically
53 # generated by other debhelper scripts.
55 #DEBHELPER#
57 exit 0