2 # postrm script for icinga2-common
7 en="/etc/icinga2/classicui"
9 . /usr/share/debconf/confmodule
13 if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
14 echo "disabling Apache2 configuration ..."
15 . /usr/share/apache2/apache2-maintscript-helper
16 apache2_invoke disconf icinga2-classicui
18 if [ -L /etc/apache2/conf.d/icinga-web.conf ]; then
19 echo "removing link /etc/apache2/conf.d/icinga2-classicui.conf ..."
20 # remove link to config
21 rm -f /etc/apache2/conf.d/icinga2-classicui.conf
23 [ -x $(which invoke-rc.d) ] && invoke-rc.d apache2 reload || true
29 rm -f "$en/htpasswd.users"
32 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
38 echo "postrm called with unknown argument \`$1'" >&2