From 3270022848367c12aec2eec3411bd8bedafaf1fe Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 29 Mar 2018 14:40:16 +0200 Subject: [PATCH] luabackend: do not assume module path --- modules/luabackend/test2/pdns | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/luabackend/test2/pdns b/modules/luabackend/test2/pdns index 95dfe86538..138a8c0893 100755 --- a/modules/luabackend/test2/pdns +++ b/modules/luabackend/test2/pdns @@ -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 -- 2.47.2