blob: 6a235b2fc88feaaabba7d3f6ba0ac94c9bda208f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/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
|