f530698359
- Minor stylistic tweaks PR: ports/126017 Submitted by: Sten Spans <sten@blinkenlights.nl> (maintainer) Approved by: beech (mentor, implicit)
19 lines
453 B
Bash
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
|