#!/bin/sh -e

CONFIG_FILE_PATH="/etc/cascade/config.toml"

case "$1" in
purge)
    # Per https://www.debian.org/doc/debian-policy/ch-files.html#behavior
    # "configuration files must be preserved when the package is removed, and
    #  only deleted when the package is purged."
    if [ -e ${CONFIG_FILE_PATH} ]; then
        rm ${CONFIG_FILE_PATH}
    fi

    # TODO: Remove the user account and home dir and /etc/cascade/policies?
    ;;
esac

#DEBHELPER#
