postrm is in libapache2-mod-perl2 2.0.5-5ubuntu1.
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 | #!/bin/sh
set -e
CONFFILE=/etc/apache2/mods-available/perl.conf
CONFLINK=/etc/apache2/mods-enabled/perl.conf
if [ "$1" = "purge" ]; then
rm -f $CONFFILE
fi
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt 2.0.2-2.4 \
&& [ -e /etc/apache2/mods-enabled/perl.load ]
then
ln -s "$CONFFILE" "$CONFLINK" || true
fi
|