File: postrm

package info (click to toggle)
libapache-mod-choke 0.06-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 120 kB
  • ctags: 70
  • sloc: ansic: 764; makefile: 56; sh: 41
file content (39 lines) | stat: -rw-r--r-- 759 bytes parent folder | download | duplicates (2)
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
#! /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#