From 13e829e8b29756f29ceb076b6b275ee13e607c67 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 19 Apr 2010 16:58:44 +1200 Subject: [PATCH] Remove generated /etc/koha/koha-conf.xml when package is purged. Signed-off-by: Galen Charlton --- debian/koha.postrm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/debian/koha.postrm b/debian/koha.postrm index 60ba704f47..18b37940a1 100644 --- a/debian/koha.postrm +++ b/debian/koha.postrm @@ -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# -- 2.39.5