From e1fd56b67cf4bed0f866dd5730fa856de241aed0 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Tue, 7 Jul 2015 14:17:32 +0200 Subject: [PATCH] Generate recursor.conf for CentOS 6 rpm --- build-scripts/build-recursor-rpm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build-scripts/build-recursor-rpm b/build-scripts/build-recursor-rpm index 49c60fc268..7d131be272 100755 --- a/build-scripts/build-recursor-rpm +++ b/build-scripts/build-recursor-rpm @@ -84,7 +84,7 @@ case "\$1" in start) start ;; - stop) + stop) stop ;; restart|force-reload|reload) @@ -143,8 +143,8 @@ make install DESTDIR=%{buildroot} CONFIGDIR="%{_sysconfdir}/%{name}" chmod 0755 %{buildroot}/%{_bindir}/rec_control chmod 0755 %{buildroot}/%{_sbindir}/pdns_recursor %{__install} -D -p %{SOURCE1} %{buildroot}%{_initrddir}/pdns-recursor - -%{__mv} %{buildroot}%{_sysconfdir}/%{name}/recursor.conf{-dist,} +%{buildroot}/%{_sbindir}/pdns_recursor --config > %{buildroot}%{_sysconfdir}/%{name}/recursor.conf +%{__rm} %{buildroot}%{_sysconfdir}/%{name}/recursor.conf-dist # add pdns user and group to top of configfile sed -i '1i\\setuid=pdns-recursor' %{buildroot}%{_sysconfdir}/%{name}/recursor.conf -- 2.47.3