From 603402bbe43510ef50a10819e95854d58dd63cc4 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 20 Feb 2007 02:08:41 +0000 Subject: Debian packaging updates from Ressu git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2853 ce84e21b-d406-0410-9b95-82705330c041 --- debian/bcfg2.postrm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'debian/bcfg2.postrm') diff --git a/debian/bcfg2.postrm b/debian/bcfg2.postrm index bd6264cd7..5d7efc942 100644 --- a/debian/bcfg2.postrm +++ b/debian/bcfg2.postrm @@ -21,8 +21,14 @@ case "$1" in purge) for i in /etc/default/bcfg2 /etc/bcfg2.conf; do rm -f $i - # This might prove to be a bug, assuming that ucf is in /usr/sbin - test -x /usr/bin/ucf && ucf -p $i + + if which ucf >/dev/null; then + ucf --purge $1 + fi + if which ucfr >/dev/null; then + ucfr --purge bcfg2 $i + fi + done ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) -- cgit v1.2.3-1-g7c22