#! /bin/sh

set -e

if [ "$1" = purge ]; then
	rm -rf /var/cache/dirmngr/ /var/lib/dirmngr/ /var/log/dirmngr/ /var/run/dirmngr/

	if [ -x /usr/sbin/deluser ]; then
		deluser --system dirmngr || :
	fi
	if [ -x /usr/sbin/delgroup ]; then
		delgroup --system dirmngr || :
	fi
fi

#DEBHELPER#
