This file is indexed.

postrm is in mrs 6.0.5+dfsg-3ubuntu1.

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

set -e

if [ -e /usr/share/debconf/confmodule ] ; then
  . /usr/share/debconf/confmodule
  export debconfavailable="yes"
fi

case "$1" in
    remove)
    	if [ -x /etc/init.d/mrs ]; then
    		if command -v invoke-rc.d > /dev/null 2>&1; then
    			invoke-rc.d mrs stop
    		else
    			/etc/init.d/mrs stop
    		fi
    	fi
    ;;
    
    purge)
    	update-rc.d mrs remove > /dev/null
		rm -rf /var/log/mrs
		rm -rf /etc/mrs/
		if [ ! -d /var/lib/mrs ]; then
			userdel mrs-dba
		else
			echo "/var/lib/mrs not deleted since it is not empty"
		fi
	;;
esac