]> granicus.if.org Git - pdns/commitdiff
dnsdist: Fix $ expansion in build-dnsdist-rpm
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 4 Jul 2016 16:06:08 +0000 (18:06 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 4 Jul 2016 16:08:46 +0000 (18:08 +0200)
Using '!' inside double-quoted string in shell might lead to nasty
issues if bash is used (history), replacing that with ',' instead.

build-scripts/build-dnsdist-rpm

index ef95cb3089b667b4480df6e08f07883278d0c5fa..5b1d54c7ec0ed251c65f6e101707cda8baffba4d 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!/^\(ExecStart.*\)dnsdist\(.*\)$!\1dnsdist -u dnsdist -g dnsdist\2!" %{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 \'