#! /bin/sh -e # # prerm script for Debian python packages. # Written 1998 by Gregor Hoffleit . # # $URL: svn+ssh://svn.debian.org/svn/svn/pkg-mailman/trunk/debian/prerm $ # $Id: prerm 421 2006-10-08 12:50:00Z giskard-guest $ if [ "$1" = "failed-upgrade" ] ; then if [ -x "/etc/init.d/mailman" ]; then if [ -x /usr/sbin/invoke-rc.d ] ; then invoke-rc.d mailman stop || true else /etc/init.d/mailman stop || true fi fi chmod -x /usr/lib/mailman/bin/mailmanctl fi # Automatically added by dh_pysupport if which update-python-modules >/dev/null 2>&1; then update-python-modules -c mailman.private fi # End automatically added section # Automatically added by dh_installinit if [ -x "/etc/init.d/mailman" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d mailman stop || exit $? else /etc/init.d/mailman stop || exit $? fi fi # End automatically added section