#! /bin/sh # postrm script for reaction # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see /usr/doc/packaging-manual/ case "$1" in purge|disappear) # Remove configuration rm -f /etc/reaction.yml # Remove database rm -f /var/lib/reaction/* ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade) # nothing ;; esac if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then systemctl --system daemon-reload >/dev/null || true fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'reaction.service' >/dev/null || true fi fi