prerm is in icinga-web 1.10.0-2.
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 | #!/bin/bash
set -e
. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/prerm
dbc_go icinga-web $@
###
# Clear cache
###
if [ -x /usr/lib/icinga-web/bin/clearcache.sh ]; then
/usr/lib/icinga-web/bin/clearcache.sh
fi
# remove old cache dir (versions before 1.7.1-2)
rm -rf /var/lib/icinga-web/app/cache
[ -d /var/lib/icinga-web/app ] && rmdir /var/lib/icinga-web/app || true
[ -d /var/lib/icinga-web ] && rmdir /var/lib/icinga-web || true
|