postrm is in libapache2-mod-python 3.3.1-9ubuntu1.
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 | #! /bin/sh
set -e
# mod_python.load renamed to python.load in 3.3.1-3
if dpkg --compare-versions "$2" lt-nl "3.3.1-3"; then
# downgrading to < 3.3.1-3 -- we have to restore pseudo conffile
if [ ! -e /etc/apache2/mods-available/mod_python.load ]; then
echo "LoadModule python_module /usr/lib/apache2/modules/mod_python.so" > /etc/apache2/mods-available/mod_python.load
fi
elif [ -e /etc/apache2/mods-available/mod_python.load ]; then
rm -f /etc/apache2/mods-available/mod_python.load
fi
exit 0
|