#!/bin/sh
set -e

case "$1" in
    purge)
        # Logs, generated runtime files, the venv's pyc cache - none of these
        # are tracked by dpkg, so a `purge` won't clean them up by itself.
        rm -rf /opt/site24x7
        # The system user/group are intentionally left in place: removing them
        # would orphan file ownership on any pre-purge backup the admin may
        # have made under /opt/site24x7.
        ;;
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
        ;;
    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac

#DEBHELPER#

exit 0
