diff --git a/setup/dns.sh b/setup/dns.sh index da16c75a..e1bc69a0 100755 --- a/setup/dns.sh +++ b/setup/dns.sh @@ -22,7 +22,7 @@ cat > /etc/nsd/nsd.conf << EOF; # Do not edit. Overwritten by Mail-in-a-Box setup. server: hide-version: yes - logfile: "/var/log/nsd.log" + log-only-syslog: yes # identify the server (CH TXT ID.SERVER entry). identity: "" @@ -92,19 +92,6 @@ EOF echo "Installing nsd (DNS server)..." apt_install nsd ldnsutils openssh-client -# ensure nsd can write to its log file - -rwpaths=$(awk -F= '/^ReadWritePaths=/ { print $2 }' /lib/systemd/system/nsd.service) -mkdir -p /etc/systemd/system/nsd.service.d -cat >/etc/systemd/system/nsd.service.d/miab.conf </etc/rsyslog.d/20-mailinabox.conf <