This file is indexed.

postrm is in websimba 0.8.4-4.3.

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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/sh


#
# Skip, if we are not in "configure" state
# 
if [ "$1" != "remove" ] && [ "$1" != "purge" ]; then
	echo "I: Skipping configuration"
	exit 0
fi

## Source debconf library
. /usr/share/debconf/confmodule
db_version 2.0

#
# retieve various configuration options from debconf
#
db_get websimba/webserver
WWWTYPE="$RET"

case "$WWWTYPE" in
	"Apache")
		webservers="apache" ;;
	"Apache-SSL")
		webservers="apache-ssl" ;;
	"Apache2")
		webservers="apache2" ;;
	"All")
		webservers="apache apache-ssl apache2" ;;
	*)
		webservers="" ;;
esac
includefile=/etc/simba/apache.conf


#
# remove or purge the whole package
#

if [ "$1" = "purge" ] || [ "$1" = "remove" ]; then

	echo -n "I: Remove apache configuration files:" 
	for server in $webservers; do
		echo -n " $server"

		# prefer conf.d over monolithic form
		if [ -d "/etc/${server}/conf.d" ]; then
			if [ -L "/etc/${server}/conf.d/simba.conf" ]; then
				rm "/etc/${server}/conf.d/simba.conf"
			fi
		else
			conffile="/etc/$server/httpd.conf"
			if [ -e /usr/share/wwwconfig-common/apache-uninclude.sh ]; then
				. /usr/share/wwwconfig-common/apache-uninclude.sh
				[ "$status" = "error" ] && echo "Unable to remove \"Include $includefile\" from $conffile"
			else
				echo "Cannot uninclude apache config part (can't find wwwconfig-common script)." >&2
			fi
		fi

		if [ "$status" = "purge" ] ; then
			restart="$restart $server"
		fi
		if [ -e /usr/share/wwwconfig-common/restart.sh ] ; then
			. /usr/share/wwwconfig-common/restart.sh ||
				echo "Could not restart servers (wwwconfig-common script failed)." >&2
		else
			echo "Cannot restart servers (can't find wwwconfig-common script)." >&2
		fi
		
	done
	echo "."
fi

# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section


exit 0