From: Remi Gacogne Date: Mon, 17 Jul 2023 08:41:13 +0000 (+0200) Subject: dnsdist: Set the group of our configuration file to dnsdist on RH and co X-Git-Tag: rec-5.0.0-alpha1~85^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13037%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Set the group of our configuration file to dnsdist on RH and co The file was already readable by the group, but our RPM specs did not set the group to 'dnsdist'. --- diff --git a/builder-support/specs/dnsdist.spec b/builder-support/specs/dnsdist.spec index a60c611815..8089a0d6d0 100644 --- a/builder-support/specs/dnsdist.spec +++ b/builder-support/specs/dnsdist.spec @@ -113,6 +113,7 @@ make %{?_smp_mflags} check || (cat test-suite.log && false) %make_install install -d %{buildroot}/%{_sysconfdir}/dnsdist %{__mv} %{buildroot}%{_sysconfdir}/dnsdist/dnsdist.conf-dist %{buildroot}%{_sysconfdir}/dnsdist/dnsdist.conf +chgrp dnsdist %{buildroot}/%{_sysconfdir}/dnsdist/dnsdist.conf chmod 0640 %{buildroot}/%{_sysconfdir}/dnsdist/dnsdist.conf sed -i "s,/^\(ExecStart.*\)dnsdist\(.*\)\$,\1dnsdist -u dnsdist -g dnsdist\2," %{buildroot}/%{_unitdir}/dnsdist.service sed -i "s,/^\(ExecStart.*\)dnsdist\(.*\)\$,\1dnsdist -u dnsdist -g dnsdist\2," %{buildroot}/%{_unitdir}/dnsdist@.service