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
|
#! /bin/sh
# Abort if any command returns an error value
set -e
# This script is called twice during the removal of the package; once
# after the removal of the package's files from the system, and as
# the final step in the removal of this package, after the package's
# conffiles have been removed.
case "$1" in
remove)
# This package has been removed, but its configuration has not yet
# been purged.
test ! -x /usr/sbin/apache || modules-config apache disable mod_removeip
test ! -x /usr/sbin/apache-ssl || modules-config apache-ssl disable mod_removeip
test ! -x /usr/sbin/apache-perl || modules-config apache-perl disable mod_removeip
:
;;
purge | disappear | upgrade | failed-upgrade | abort-upgrade)
:
;;
abort-install)
# Back out of an attempt to install this package. Undo the effects of
# "preinst install...". There are two sub-cases.
test ! -x /usr/sbin/apache || modules-config apache disable mod_removeip
test ! -x /usr/sbin/apache-ssl || modules-config apache-ssl disable mod_removeip
test ! -x /usr/sbin/apache-perl || modules-config apache-perl disable mod_removeip
:
;;
*) echo "$0: didn't understand being called with \`$1'" 1>&2
exit 1;;
esac
#DEBHELPER#
exit 0
|