#!/bin/sh
# postinst script for rbldnsd
#
# see: dh_installdeb(1)

set -e

case "$1" in
    configure)
	if ! getent passwd rbldns >/dev/null; then
		adduser --system --group --home /var/lib/rbldns --no-create-home rbldns
		mkdir -p -m0755 /var/lib/rbldns
		chown rbldns:rbldns /var/lib/rbldns
	fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

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

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#