]> granicus.if.org Git - pdns/commitdiff
luabackend: do not assume pdns_server path
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 29 Mar 2018 09:20:04 +0000 (11:20 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 29 Mar 2018 10:10:30 +0000 (12:10 +0200)
modules/luabackend/test2/pdns

index 52561c5f98b354564bcdde983beb0127dfe7e2f9..95dfe86538c7f6a4504aaf2415f0aa72300a9932 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/env bash
+PDNS=${PDNS:-${PWD}/../../../pdns/pdns_server}
 
-../../../pdns/pdns_server --no-config --daemon=no --local-port=5300 --socket-dir=./  \
+$PDNS --no-config --daemon=no --local-port=5300 --socket-dir=./  \
 --no-shuffle --launch=lua --loglevel=9 --config-dir=./ \
 --cache-ttl=0 --negquery-cache-ttl=0 --query-cache-ttl=0 \
 --module-dir=../.libs/ --lua-filename=./pdns-luabackend.lua