postrm is in sipml5-web-phone 0.0.20130314.2030-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 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 49 50 51 | #! /bin/sh
set -e
. /usr/share/debconf/confmodule
db_version 2.0 || [ $? -lt 30 ]
if [ "$1" = "purge" ]; then
db_get sipml5-web-phone/webserver || true
if [ "$RET" = "true" ]; then
webserver="apache2"
if [ -h /etc/$webserver/conf.d/sipml5-web-phone ]; then
rm -f /etc/$webserver/conf.d/sipml5-web-phone
fi
if [ -h /etc/$webserver/conf-available/sipml5-web-phone ]; then
rm -f /etc/$webserver/conf-available/sipml5-web-phone
fi
if [ -x /usr/sbin/$webserver ]; then
db_reset sipml5-web-phone/reload
db_input high sipml5-web-phone/reload || true
db_go
# Restart apache2 if requested
db_get sipml5-web-phone/reload
if [ "$RET" = "true" ]; then
if [ -x /usr/sbin/invoke-rc.d ]; then
invoke-rc.d $webserver reload
else
/etc/init.d/$webserver reload
fi
fi
fi
fi
rmdir --ignore-fail-on-non-empty /etc/sipml5-web-phone || true
db_purge
fi
# 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
|