--- postrm.orig 2010-10-22 21:37:03.000000000 -0700 +++ postrm 2010-10-22 21:39:38.000000000 -0700 @@ -8,20 +8,20 @@ CONFIG=/etc/tiger/tigerrc case "$1" in - purge) - for dir in /var/log/tiger/ /var/lib/tiger/work /var/lib/tiger/ /var/run/tiger/ - do - [ -d "$dir" ] && { - find $dir -type d -o -exec rm -f {} \; - find $dir -type d -depth -exec rmdir {} \; - } - done + purge) + for dir in /var/log/tiger/ /var/lib/tiger/work /var/lib/tiger/ /var/run/tiger/ + do + [ -d "$dir" ] && { + find $dir -type d -o -exec rm -f {} \; + find $dir -depth -type d -exec rmdir {} \; + } + done # Do we have any tigerXX files under /var/log/? if so we should remove # them. This were created due to bug #164682 ... - find /var/log/ -type f -name "tiger*" | xargs rm -f + find /var/log/ -type f -name "tiger*" | xargs rm -f # Clear some other cruft - rm -f /usr/lib/tiger/bin/.bintype || true + rm -f /usr/lib/tiger/bin/.bintype || true # we mimic dpkg as closely as possible, so we remove configuration # files with dpkg backup extensions too: @@ -39,20 +39,20 @@ # Clear config file from the ucf database if which ucf >/dev/null; then ucf --purge $CONFIG - fi + fi if which ucfr >/dev/null; then ucfr --purge tiger $CONFIG - fi + fi + + + ;; + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) +# Do nothing + ;; - - ;; - remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) -# Do nothing - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 0 + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 esac #DEBHELPER#