Make sure /etc/default/bind9 exists

This commit is contained in:
David Duque 2020-05-17 02:58:19 +01:00
parent 1513655bc4
commit baa5d32dea
No known key found for this signature in database
GPG Key ID: 2F327738A3C0AE3A
1 changed files with 1 additions and 0 deletions

View File

@ -302,6 +302,7 @@ fi #NODOC
# * The listen-on directive in named.conf.options restricts `bind9` to
# binding to the loopback interface instead of all interfaces.
apt_install bind9
touch /etc/default/bind9
management/editconf.py /etc/default/bind9 \
"OPTIONS=\"-u bind -4\""
if ! grep -q "listen-on " /etc/bind/named.conf.options; then