This file is indexed.

postrm is in mcollective-middleware 1.2.1+dfsg-2ubuntu1.

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

# We give precedence to activemq config
if hash activemq > /dev/null 2>&1; then
	if [ -h /etc/activemq/instances-enabled/mcollective ]; then
		rm -f /etc/activemq/instances-enabled/mcollective
	fi
	if [ -f /etc/activemq/instances-available/mcollective/activemq.xml ]; then
		rm -f /etc/activemq/instances-available/mcollective/activemq.xml
	fi
	if [ -d /etc/activemq/instances-available/mcollective ]; then
		rmdir /etc/activemq/instances-available/mcollective
	fi
	service activemq stop
	service activemq start
fi
if hash rabbitmqctl >/dev/null 2>&1; then
	# Remove the 'mcollective' user
	if [ "$(rabbitmqctl list_users | grep -c mcollective)" != "0" ]; then
		rabbitmqctl delete_user mcollective || true
		rabbitmqctl clear_permissions mcollective || true
	else
		true
	fi
fi