From b7c7187fa57464c964640d244c56ab6ce183e228 Mon Sep 17 00:00:00 2001 From: downtownallday Date: Mon, 28 Feb 2022 09:40:28 -0500 Subject: [PATCH] Fix the ownership of nsd.log on upgrade --- setup/system.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/system.sh b/setup/system.sh index 29620758..831e2edc 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -389,4 +389,8 @@ mail.* stop # configuration. :app-name, isequal, "nsd" -/var/log/nsd.log EOF + +# Before miabldap v56, nsd.log was owned by nsd:nsd, which would +# prevent rsyslog from writing to it. Fix the ownership. +[ -e /var/log/nsd.log ] && chown syslog:adm /var/log/nsd.log restart_service rsyslog