#!/bin/sh

set -e
#set -x

. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/prerm.mysql
dbc_go smbind $@

if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
            db_reset smbind/restart-webserver || true
        # Tell debconf to stop so it doesn't get confused
        db_stop
fi

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0

