postrm is in fusiondirectory 1.0.8.8-3ubuntu2.
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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | #! /bin/sh
# postrm script for FusionDirectory
#
set -e
case "$1" in
remove|purge)
if [ -d /etc/apache2/conf.d ]; then
# Remove FusionDirectory include
if [ -L /etc/apache2/conf.d/fusiondirectory.conf ]; then
rm -f /etc/apache2/conf.d/fusiondirectory.conf
fi
# Restart servers
if [ -x /usr/sbin/apache2 ]; then
if [ -x /usr/sbin/invoke-rc.d ]; then
invoke-rc.d apache2 restart
else
/etc/init.d/apache2 restart
fi
fi
fi
if [ -d /etc/apache2/conf-available ] ; then
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke disconf fusiondirectory
elif [ -L /etc/apache2/conf-enabled/fusiondirectory.conf ]; then
rm -f /etc/apache2/conf-enabled/fusiondirectory.conf
fi
if [ -L /etc/apache2/conf-available/fusiondirectory.conf ]; then
rm -f /etc/apache2/conf-available/fusiondirectory.conf
fi
# Finally restart servers
if [ -x /usr/sbin/apache2 ]; then
if [ -x /usr/sbin/invoke-rc.d ]; then
invoke-rc.d apache2 reload
else
/etc/init.d/apache2 reload
fi
fi
fi
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 0
;;
esac
exit 0
|