]> granicus.if.org Git - pdns/commitdiff
Fix PIDDIR detection on CentOS 6
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 6 Dec 2017 14:02:30 +0000 (15:02 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 30 Apr 2018 17:23:02 +0000 (19:23 +0200)
Fixes #6051

(cherry picked from commit 548eab5a52718160f0077c67a2fffb5b257dca20)

build-scripts/build-recursor-rpm

index b4d53eb8c3ccf9ec03717e50567c408588ec0819..b48aab951375f6e1bff25cb20c97c4e37dab6649 100755 (executable)
@@ -46,7 +46,7 @@ if [ -f /etc/redhat-release ]; then
 
 RETVAL=0
 
-PIDDIR=\$(awk -F= '/^socket-dir=/ {print \$2}' /etc/powerdns/recursor.conf)
+PIDDIR=\$(awk -F= '/^socket-dir=/ {print \$2}' /etc/pdns-recursor/recursor.conf)
 if [ -z "\$PIDDIR" ]; then PIDDIR=/var/run; fi
 mkdir -p "\$PIDDIR"