2 # postinst script for libapache2-mod-proxy-fdpass
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/proxy_fdpass.load ]; then
35 # We must reenable this module to enable the new configuration file
36 if dpkg --compare-versions "$2" lt "3.0.0-1" ; then
37 a2dismod proxy_fdpass >/dev/null || true
38 a2enmod proxy_fdpass >/dev/null || true
44 if [ -e /etc/apache2/apache2.conf ]; then
45 a2enmod proxy_fdpass >/dev/null || true
51 abort-upgrade|abort-remove|abort-deconfigure)
56 echo "postinst called with unknown argument \`$1'" >&2
61 # dh_installdeb will replace this with shell code automatically
62 # generated by other debhelper scripts.