File: libapache-mod-removeip.postrm

package info (click to toggle)
libapache-mod-removeip 1.0b-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 124 kB
  • ctags: 19
  • sloc: ansic: 119; sh: 84; makefile: 75
file content (37 lines) | stat: -rw-r--r-- 1,264 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
#! /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