#!/bin/sh
# postrm script for dmarc-srg

set -eu

if [ "$1" = "purge" ]; then
	rm -f /etc/dmarc-srg/conf.php
	if which ucf >/dev/null 2>&1; then
		ucf --debconf-ok --purge /etc/dmarc-srg/conf.php
	fi
fi

if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then

	if [ "$1" = "purge" ]; then
		rm -rf /etc/dmarc-srg
	fi
fi

#DEBHELPER#

exit 0
