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 52
|
#! /bin/sh
# prerm script for libapache-mod-auth-shadow
#
# see: dh_installdeb(1)
set -e
# Summary of how this script can be called:
#
# * prerm remove
# - we are going to be removed. deconfigure the package
# * old-prerm upgrade new-version
# - this version is going to be upgraded. Deconfigure this version.
# * new-prerm failed-upgrade old-version
# - some version was going to be upgraded, but its deconf. failed. Try to deconfigure that version.
# * conflictor's-prerm remove in-favour package new-version
# - this version is going to be removed because something conflicted with
# it. Deconfigure it before removal.
# * deconfigured's-prerm deconfigure in-favour package-being-installed version removing conflicting-package version
# - a package we depend upon is going to be removed because something
# conflicted with it, so we need to be deconfigured.
#
# For details, see /usr/share/doc/debian-policy/ch-maintainerscripts.html
disable()
{
# Disable the module
for i in apache apache-perl apache-ssl; do
if [ -e /etc/$i/httpd.conf ]; then
modules-config $i disable mod_auth_shadow quiet
fi
done
}
case "$1" in
remove)
disable
;;
upgrade|failed-upgrade|deconfigure)
# do nothing
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 0
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
|