[Koha-patches] [PATCH 2/2] Remove generated /etc/koha/koha-conf.xml when package is purged.
Lars Wirzenius
lars at catalyst.net.nz
Mon Apr 19 06:58:44 CEST 2010
---
debian/koha.postrm | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/debian/koha.postrm b/debian/koha.postrm
index 60ba704..18b3794 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#
--
1.7.0
More information about the Koha-patches
mailing list