Remove generated /etc/koha/koha-conf.xml when package is purged.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Lars Wirzenius 2010-04-19 16:58:44 +12:00 committed by Galen Charlton
parent 24f7a68259
commit 13e829e8b2

14
debian/koha.postrm vendored
View file

@ -10,12 +10,12 @@ if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then
dbc_go koha $@
fi
#if [ "$1" = "purge" ]; then
# rm -f /etc/db-test-mysql/debian-db.php
# if which ucf >/dev/null 2>&1; then
# ucf --purge /etc/db-test-mysql/debian-db.php
# ucfr --purge db-test-mysql /etc/db-test-mysql/debian-db.php
# fi
#fi
if [ "$1" = "purge" ]; then
configfile="/etc/koha/koha-conf.xml"
rm -f "$configfile"
if which ucf >/dev/null 2>&1; then
ucf --purge "$configfile"
fi
fi
#DEBHELPER#