File: libapache-mod-perl.prerm

package info (click to toggle)
apache 1.3.34-4.1
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 4,800 kB
  • ctags: 90
  • sloc: sh: 1,273; makefile: 685; perl: 215
file content (31 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (3)
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
#!/bin/bash

set -e

killconf() {
	# apache-perl depends on us so there is no need to
	# remove the entries because they will be flushed
	# in any case
	if [ -x /usr/sbin/apache-modconf ]; then
		for i in apache apache-ssl; do
			if [ -e /etc/$i/httpd.conf ]; then
				/usr/sbin/apache-modconf $i disable mod_perl quiet
			fi
		done
	fi
}

case "$1" in
  remove)
	killconf
	;;
  upgrade | deconfigure | failed-upgrade)
	:
	;;
  *) echo "$0: didn't understand being called with \`$1'" 1>&2
     exit 1;;
esac

#DEBHELPER#

exit 0