From 8e5cb8b5ccdd98c0f9b81e712b90314fb0bf0c9e 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 95dfe8653..138a8c089 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.40.0