#!/bin/sh

. /usr/share/debconf/confmodule

if [ -f /usr/share/dbconfig-common/dpkg/prerm.pgsql ]; then
	. /usr/share/dbconfig-common/dpkg/prerm.pgsql
	dbc_go whatwhat $@
fi

# Automatically added by dh_installinit
if [ -x "/etc/init.d/whatwhat" ]; then
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d whatwhat stop || exit $?
	else
		/etc/init.d/whatwhat stop || exit $?
	fi
fi
# End automatically added section
# Automatically added by dh_pysupport
if which update-python-modules >/dev/null 2>&1; then
	update-python-modules -c -i /usr/share/python-support/whatwhat
fi
# End automatically added section

