This file is indexed.

postrm is in ldap-account-manager 6.2-1.

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
#!/bin/bash

set -e

if [ "$1" = "upgrade" ]; then
	exit 0
fi

if [ -f /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_version 2.0 || [ $? -lt 30 ]

  rm -f /usr/share/ldap-account-manager/sess
  rm -f /usr/share/ldap-account-manager/tmp
  rm -f /usr/share/ldap-account-manager/config

  set +e
	db_get "ldap-account-manager/config-webserver"
	if [ $? -eq 0 ]; then
		set -e
		webservers="$RET"
		restart=""
		for server in $webservers; do
				server=${server%,}
				case "$server" in
						apache2)
								set +e
								a2query -q -c ldap-account-manager && a2disconf -q ldap-account-manager
								set -e
								rm -f /etc/$server/conf-available/ldap-account-manager.conf
								test -x /usr/sbin/$server || continue
								restart="$restart $server"
								;;
				esac
		done
	fi

	set +e
	db_get "ldap-account-manager/restart-webserver"
	if [ $? -eq 0 ] && [ "$RET" = "true" ]; then
		set -e
		for server in $restart; do
				server=${server%,}
				if [ `which invoke-rc.d` ]; then
					invoke-rc.d $server reload
				elif [ `which service` ]; then
					service $server reload
				fi
		done
	fi

	set -e
	if [ "$1" = "purge" ]; then
		rm -r -f /usr/share/ldap-account-manager
		rm -r -f /var/lib/ldap-account-manager
		db_purge
	fi

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


	db_stop

fi

exit 0