summaryrefslogtreecommitdiffstats
path: root/debian/bcfg2.postrm
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-02-20 02:08:41 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-02-20 02:08:41 +0000
commit603402bbe43510ef50a10819e95854d58dd63cc4 (patch)
treef02049ba592af424d9c53ec05b320d18a28f595c /debian/bcfg2.postrm
parent887349ce75cef7cad243098858363cb0d9d99614 (diff)
downloadbcfg2-603402bbe43510ef50a10819e95854d58dd63cc4.tar.gz
bcfg2-603402bbe43510ef50a10819e95854d58dd63cc4.tar.bz2
bcfg2-603402bbe43510ef50a10819e95854d58dd63cc4.zip
Debian packaging updates from Ressu
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2853 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'debian/bcfg2.postrm')
-rw-r--r--debian/bcfg2.postrm10
1 files changed, 8 insertions, 2 deletions
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)