#!/bin/sh

set -e
#set -x

if [ -f /usr/share/debconf/confmodule ]; then
    . /usr/share/debconf/confmodule
fi
if [ -f /usr/share/dbconfig-common/dpkg/postrm.sqlite ]; then
    . /usr/share/dbconfig-common/dpkg/postrm.sqlite
    dbc_go db-test-sqlite "$@"
fi

if [ "$1" = "purge" ]; then
	rm -f /etc/db-test-sqlite/debian-db.php
	if which ucf >/dev/null 2>&1; then
		ucf --purge /etc/db-test-sqlite/debian-db.php
    ucfr --purge db-test-sqlite /etc/db-test-sqlite/debian-db.php
	fi
fi

#DEBHELPER#
