2
# postinst script for libapache-mod-suphp
4
# see: dh_installdeb(1)
8
# summary of how this script can be called:
9
# * <postinst> `configure' <most-recently-configured-version>
10
# * <old-postinst> `abort-upgrade' <new version>
11
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
13
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
14
# <failed-install-package> <version> `removing'
15
# <conflicting-package> <version>
16
# for details, see http://www.debian.org/doc/debian-policy/ or
17
# the debian-policy package
22
if apache2ctl configtest 2>/dev/null; then
23
invoke-rc.d apache2 force-reload || true
25
echo "Your apache2 configuration is broken, so we're not restarting it for you."
32
# Reload the module on upgrade if enabled
34
if [ -e /etc/apache2/mods-enabled/suphp.load ]; then
39
if [ -e /etc/apache2/apache2.conf ]; then
40
a2enmod suphp >/dev/null || true
46
abort-upgrade|abort-remove|abort-deconfigure)
51
echo "postinst called with unknown argument \`$1'" >&2
56
# dh_installdeb will replace this with shell code automatically
57
# generated by other debhelper scripts.