]> granicus.if.org Git - icinga2/blob - debian/icinga2-common.postrm
Enable unity build for RPM/Debian packages
[icinga2] / debian / icinga2-common.postrm
1 #!/bin/sh
2 # postrm script for icinga2-common
3
4 set -e
5
6 case "$1" in
7     purge)
8         for f in /etc/icinga2/features-enabled/*; do
9             [ -L "$f" ] && rm -f "$f"
10         done
11         rm -rf /var/lib/icinga2/
12         rm -rf /var/log/icinga2/
13         rm -rf /var/cache/icinga2/
14         rm -rf /var/spool/icinga2/
15     ;;
16
17     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
18     ;;
19
20     *)
21         echo "postrm called with unknown argument \`$1'" >&2
22         exit 1
23     ;;
24 esac
25
26 # dh_installdeb will replace this with shell code automatically
27 # generated by other debhelper scripts.
28
29 #DEBHELPER#
30
31 exit 0