]> granicus.if.org Git - pdns/commitdiff
Fix dnsdist rpm building script #4048
authorDaniel Stirnimann <daniel.stirnimann@switch.ch>
Mon, 27 Jun 2016 09:55:39 +0000 (11:55 +0200)
committerDaniel Stirnimann <daniel.stirnimann@switch.ch>
Mon, 27 Jun 2016 09:55:39 +0000 (11:55 +0200)
build-scripts/build-dnsdist-rpm

index a7b85924bfdb7cbfa4ea4b8a7e3f5248cd451b34..ef95cb3089b667b4480df6e08f07883278d0c5fa 100755 (executable)
@@ -40,7 +40,7 @@ SODIUM_CONFIGURE=''
 
 # Some RPM platforms use systemd, others sysv, we default to systemd here
 INIT_BUILDREQUIRES='BuildRequires: systemd-devel'
-INIT_INSTALL='sed -i "s!/dnsdist!/dnsdist -u dnsdist -g dnsdist!" %{buildroot}/lib/systemd/system/dnsdist.service'
+INIT_INSTALL='sed -i "s!/^\(ExecStart.*\)dnsdist\(.*\)$!\1dnsdist -u dnsdist -g dnsdist\2!" %{buildroot}/lib/systemd/system/dnsdist.service'
 INIT_FILES='/lib/systemd/system/dnsdist.service'
 INIT_CONFIGURE='--enable-systemd --with-systemd=/lib/systemd/system \'