freebsd-ports/dns/powerdns-recursor/pkg-deinstall
Greg Larkin f530698359 - Incorporated platform-specific static compilation fix
- Minor stylistic tweaks

PR:		ports/126017
Submitted by:	Sten Spans <sten@blinkenlights.nl> (maintainer)
Approved by:	beech (mentor, implicit)
2008-08-06 20:48:41 +00:00

19 lines
453 B
Bash

#!/bin/sh
if [ "$2" != "POST-DEINSTALL" ]; then
exit 0
fi
PDNSUSER=${PDNSUSER:-pdns_recursor}
PDNSUID=${PDNSUID:-120}
PDNSGROUP=${PDNSGROUP:-pdns}
PDNSGID=${PDNSGID:-120}
if pw groupshow "$PDNSGROUP" 2>/dev/null 1>&2; then
echo "To delete the PowerDNS group permanently, use 'pw groupdel ${PDNSGROUP}'"
fi
if pw usershow "$PDNSUSER" 2>/dev/null 1>&2; then
echo "To delete the PowerDNS user permanently, use 'pw userdel ${PDNSUSER}'"
fi
exit 0