#! /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 ## Automatically added by dh_installinit/13.14.1 if [ "$1" = "remove" ] && [ -x "/etc/init.d/crossfire-server" ] ; then chmod -x "/etc/init.d/crossfire-server" >/dev/null || true fi if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = "purge" ] ; then update-rc.d crossfire-server remove >/dev/null fi # End automatically added section # Automatically added by dh_installsystemd/13.14.1 if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.14.1 if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'crossfire-server.service' >/dev/null || true fi fi # End automatically added section #