This file is indexed.

postrm is in amanda-common 1:3.5.1-1build2.

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
#!/bin/sh -e
set -e
case "$1" in
  purge)
	if [ -d /var/log/amanda ]; then
		rm -rf /var/log/amanda
	fi
	if [ -d /var/lib/amanda-gnutar-lists ]; then
		rm -rf /var/lib/amanda-gnutar-lists
	fi
	if [ -d /var/lib/amanda-index ]; then
		rm -rf /var/lib/amanda-index
	fi
	if [ -d /var/lib/amanda ]; then
		rm -rf /var/lib/amanda
	fi
	# keep this around to clean up after old, broken amanda packages
	# new packages have amandates in /var/lib/amanda...
	if [ -f /var/lib/amandates ]; then
		rm -f /var/lib/amandates
	fi

	rm -f ~backup/.amandahosts

  ;;
  remove|upgrade|deconfigure)
  ;;

  failed-upgrade)
  ;;

  *)
        echo "unknown argument --> $1" >&2
        exit 0
  ;;
esac

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