blob: 0c99299b816f99bce99d15ff1985b89c5f2d2ff9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
#DEBHELPER#
if [ "$1" = "purge" ]; then
rm -f /etc/bind/rndc.key /etc/bind/named.conf.options /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
# delete bind daemon user, if it exists
if getent passwd bind > /dev/null ; then
echo "Deleting bind user"
deluser --quiet bind > /dev/null || true
fi
fi
|