blob: 8e28807b9aad8017c55edbf9c55b5b2b02dfc502 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
set -e
#DEBHELPER#
if [ "$1" = "purge" ]; then
rm -f /etc/bind/rndc.key /etc/default/bind9
rmdir /etc/bind >/dev/null 2>&1 || true
rm -f /etc/apparmor.d/force-complain/usr.sbin.named >/dev/null 2>&1 || true
rm -f /var/lib/bind/bind9-default.md5sum
rmdir /var/lib/bind || true
# delete bind daemon user, if it exists
if getent passwd bind > /dev/null ; then
deluser --quiet bind > /dev/null || true
fi
fi
exit 0
|