diff options
Diffstat (limited to 'debian/bcfg2.postrm')
-rw-r--r-- | debian/bcfg2.postrm | 10 |
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) |