File: libapache-mod-removeip.postinst

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 (42 lines) | stat: -rw-r--r-- 1,594 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
40
41
42
#!/bin/bash

# Abort if any command returns an error value
set -e

# This script is called as the last step of the installation of the
# package.  All the package's files are in place, dpkg has already done
# its automatic conffile handling, and all the packages we depend of
# are already fully installed and configured.

case "$1" in
  configure)
    # Configure this package.  If the package must prompt the user for
    # information, do it here.  There are three sub-cases.
    :
    if test "${2+set}" != set; then
      # We're being installed by an ancient dpkg which doesn't remember
      # which version was most recently configured, or even whether
      # there is a most recently configured version.
		test ! -x /usr/sbin/apache || modules-config apache enable mod_removeip
		test ! -x /usr/sbin/apache-ssl || modules-config apache-ssl enable mod_removeip
		test ! -x /usr/sbin/apache-perl || modules-config apache-perl enable mod_removeip
      :
    elif test -z "$2" -o "$2" = "<unknown>"; then
      # The package has not ever been configured on this system, or was
      # purged since it was last configured.
      # DJ: So let's enable the module!
		test ! -x /usr/sbin/apache || modules-config apache enable mod_removeip
		test ! -x /usr/sbin/apache-ssl || modules-config apache-ssl enable mod_removeip
		test ! -x /usr/sbin/apache-perl || modules-config apache-perl enable mod_removeip
      :
    fi ;;
  abort-upgrade | abort-remove | abort-deconfigure)
  	:
    ;;
  *) echo "$0: didn't understand being called with \`$1'" 1>&2
     exit 1;;
esac

#DEBHELPER#

exit 0