This file is indexed.

postrm is in etckeeper 1.9ubuntu2.

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
#!/bin/sh
set -e

if [ "$1" = purge ]; then
	if [ -e /etc/.etckeeper ]; then
		. /usr/share/debconf/confmodule
	
		# uninit on purge is tricky because etckeeper's configuration
		# and code has been removed at this point. This relies on a
		# stashed away copy.
		if [ -e /var/cache/etckeeper/stash/etckeeper.conf ] &&
		   [ -d /var/cache/etckeeper/stash/uninit.d ] &&
		   [ -x /var/cache/etckeeper/stash/etckeeper ]; then
			. /var/cache/etckeeper/stash/etckeeper.conf
			if [ -n "$VCS" ]; then
				db_subst etckeeper/purge VCS "$VCS"
				db_input critical etckeeper/purge || true
				db_go || true
				db_get etckeeper/purge
				if [ "$RET" = true ]; then
					ETCKEEPER_CONF_DIR=/var/cache/etckeeper/stash
					export ETCKEEPER_CONF_DIR
					/var/cache/etckeeper/stash/etckeeper uninit -f || true
				fi
			fi
		fi
	fi
	rm -rf /var/cache/etckeeper
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