Download this file
61 lines (46 with data), 1.4 kB
#!/bin/sh
# postrm script for php-java-bridge
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# * <new-postrm> `abort-install' <old-version>
# * <new-postrm> `abort-upgrade' <old-version>
# * <disappearer's-postrm> `disappear' <overwriter>
# <overwriter-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
javaini=/etc/php5/conf.d/java.ini
javaservletini=/etc/php5/conf.d/java-servlet.ini
monoini=/etc/php5/conf.d/mono.ini
case "$1" in
remove|upgrade)
invoke-rc.d apache2 restart;
invoke-rc.d tomcat5 restart;
;;
purge|failed-upgrade|abort-install|abort-upgrade|disappear)
if which ucf >/dev/null 2>&1; then
ucf --purge $javaini;
ucf --purge $javaservletini;
ucf --purge $monoini;
fi
rm -f $javaini;
rm -f $javaservletini;
rm -f $monoini;
invoke-rc.d apache2 restart;
invoke-rc.d tomcat5 restart;
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.