#! /bin/sh
# postrm script for libapache-mod-dav
#
# see: dh_installdeb(1)

set -e

case "$1" in
 upgrade | failed-upgrade | abort-install | abort-upgrade )
 ;;
 remove | disappear)
  for i in apache apache-ssl apache-perl; do
   if [ -f /etc/$i/modules.conf ]; then
    if [ -x /usr/sbin/apache-modconf ]; then
      apache-modconf $i
     fi
   fi
  done
 ;;
 purge)
  for i in apache apache-ssl apache-perl; do
   if [ -d /etc/$i ]; then
    if [ -x /usr/sbin/apache-modconf ]; then
      apache-modconf $i disable mod_choke quiet
    fi
   fi
  done
 ;;
 *)
  echo "$0: didn't understand being called with \`$1'" 1>&2
  exit 1
 ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

