#!/bin/sh

set -e

VERSION=%VERSION%

case $1 in
    purge)
        # Remove the "tunnel" group and user
        if getent passwd tunnel >/dev/null; then
                if [ -x "$(command -v deluser)" ]; then
                        deluser --system tunnel
                fi
        fi
        if getent group tunnel >/dev/null; then
                if [ -x "$(command -v delgroup)" ]; then
                        delgroup --system tunnel
                fi
        fi
	;;

    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
	;;

    *)
	echo "postrm called with unknown argument \`$1'" >&2
	exit 1
	;;	
esac

#DEBHELPER#
