]> granicus.if.org Git - pdns/commitdiff
luabackend: do not assume module path
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 29 Mar 2018 12:40:16 +0000 (14:40 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 1 May 2018 13:28:00 +0000 (15:28 +0200)
modules/luabackend/test2/pdns

index 95dfe86538c7f6a4504aaf2415f0aa72300a9932..138a8c0893b9e64feb03cbcd3fec5895eb071292 100755 (executable)
@@ -1,7 +1,13 @@
 #!/usr/bin/env bash
 PDNS=${PDNS:-${PWD}/../../../pdns/pdns_server}
+MODULEDIR=
+
+if [ -e ../.libs/libluabackend.so ]
+then
+       MODULEDIR=--module-dir=../.libs/
+fi
 
 $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
+$MODULEDIR --lua-filename=./pdns-luabackend.lua