postrm is in phpgacl 3.3.7-7.3.
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 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #!/bin/sh -e
# Source debconf library.
if [ -f /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi
# source dbconfig-common stuff
if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
dbc_dbtypes="mysql, pgsql"
. /usr/share/dbconfig-common/dpkg/postrm
dbc_go phpgacl $@
fi
db_get phpgacl/apache || true
WEBSERVER="$RET"
case "$WEBSERVER" in
Apache) webservers="apache" ;;
Apache2) webservers="apache2" ;;
Apache-SSL) webservers="apache-ssl" ;;
All) webservers="apache apache-ssl apache2" ;;
*) webservers="" ;;
esac
for apache in $webservers; do
if [ -f "/etc/$apache/conf.d/phpgacl.conf" ]; then
rm -f /etc/$apache/conf.d/phpgacl.conf
if [ -f "/var/run/$apache.pid" ]; then
invoke-rc.d $apache reload
fi
fi
done
# remove files under templates_c directory generated by smarty
# ONLY WITH --PURGE??
rm -f /usr/share/phpgacl/admin/templates_c/*
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section
|