#!/bin/sh

. /usr/share/debconf/confmodule

if [ "$1" = "purge" ]; then
    if [ -f /usr/share/dbconfig-common/dpkg/postrm.pgsql ]; then
	. /usr/share/dbconfig-common/dpkg/postrm.pgsql
	dbc_go whatwhat $@
    fi
    test -f /var/cache/turbogears/whatwhat/prod.cfg && rm /var/cache/turbogears/whatwhat/prod.cfg || true
fi

# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
	update-rc.d whatwhat remove >/dev/null || exit $?
fi
# End automatically added section
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section

