Source

timekoin / debian / postrm

Full commit
#!/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.mysql ]; then
    . /usr/share/dbconfig-common/dpkg/postrm.mysql
    dbc_go timekoin $@
fi


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

#DEBHELPER#