#! /bin/sh -e case "$1" in failed-upgrade|abort-upgrade) # do nothing ;; abort-install) # do nothing ;; purge) ##purge game files if [ -d /var/games/crossfire/ ] ; then if [ "`ls /var/games/crossfire/ | wc -l`" -gt 0 ] ; then echo "purging /var/games/crossfire/ and its contents" rm -rf /var/games/crossfire/ ||true fi fi ##purge logfiles if [ -d /var/log/crossfire/ ] ; then if [ "`ls /var/log/crossfire/ | wc -l`" -gt 0 ] ; then echo "purging /var/games/crossfire/ and its contents" rm -rf /var/log/crossfire/ ||true fi fi ;; remove|upgrade|disappear) # do nothing ;; *) echo "$0: incorrect arguments: $*" >&2 exit 1 ;; esac ##DEBHELPER##