postrm is in icingaweb2 2.1.0-1ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/sh
set -e
# Apache2
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
echo "disabling Apache2 configuration ..."
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke disconf icingaweb2
fi
if [ -L /etc/apache2/conf.d/icingaweb2.conf ]; then
echo "removing link /etc/apache2/conf.d/icingaweb2.conf ..."
# remove link to config
rm -f /etc/apache2/conf.d/icingaweb2.conf
# reload webserver
[ -x $(which invoke-rc.d) ] && invoke-rc.d apache2 reload || true
fi
# cleanup on purge
if [ "$1" = "purge" ]; then
rm -rf /etc/icingaweb2
rm -rf /var/log/icingaweb2
fi
|