This file is indexed.

prerm is in dwww 1.11.7.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
#!/bin/sh
#
# Debian prerm script for dwww.
# "@(#)dwww:$Id: dwww.prerm,v 1.5 2007-01-01 10:42:36 robert Exp $"
#

set -e



if [ "X$1" = "Xremove" ] ; then
	rm -rf /var/lib/dwww
	rm -rf /var/cache/dwww
	rm -rf /var/www/dwww

	for apache in "apache" "apache-perl" "apache-ssl" "apache2"; do
		cfile="/etc/$apache/conf.d/dwww"
		dwwwf="/etc/dwww/apache.conf"
		if [ -L "$cfile" ] && [ x`readlink -f "$cfile"` = x"$dwwwf" ]; then
			rm -f "$cfile"
		elif [ -e "$cfile" ]; then
			echo "$cfile exists, but isn't symlinked to $dwwwf. Not removing"
		fi
	done		


	if [ -r /etc/dwww/dwww.conf ]; then
		set +e
		. /etc/dwww/dwww.conf

		if [ -n "$DWWW_CGIDIR" ] && [ -x "$DWWW_CGIDIR/dwww" ] ; then
			rm -f "$DWWW_CGIDIR/dwww"
		fi

		if [ -n "$DWWW_DOCROOTDIR" ] && [ -d "$DWWW_DOCROOTDIR/dwww" ]; then
			rm -rf "$DWWW_DOCROOTDIR/dwww"
		fi
	fi
fi

exit 0