]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fixing shell command to work with sh not bash. Also setting LUAVER now
authorJames-Crowley <James.Crowley@ibm.com>
Mon, 8 Feb 2021 18:38:00 +0000 (13:38 -0500)
committerJames-Crowley <James.Crowley@ibm.com>
Mon, 8 Feb 2021 18:38:00 +0000 (13:38 -0500)
Dockerfile-auth
Dockerfile-dnsdist
Dockerfile-recursor

index 403a83ffe6835b9fff672bf8d620bf17524cb969..c5fa4a386b37648b88edef6e9894e20e8f228fc1 100644 (file)
@@ -45,8 +45,9 @@ RUN if [ "${DOCKER_FAKE_RELEASE}" = "YES" ]; then \
 
 # simplify repeated -C calls with SUBDIRS?
 RUN mkdir /build && \
-    /bin/bash -c ./configure \
-      --with-lua=$([[ "${NO_LUA_JIT}" == *"$(uname -m)"* ]] && echo "lua5.3" || echo "luajit") \
+    LUAVER=$([ -z "${NO_LUA_JIT##*$(uname -m)*}" ] && echo 'lua5.3' || echo 'luajit') && \
+    ./configure \
+      --with-lua=${LUAVER} \
       --sysconfdir=/etc/powerdns \
       --enable-option-checking=fatal \
       --with-dynmodules='bind geoip gmysql godbc gpgsql gsqlite3 ldap lmdb lua2 pipe random remote tinydns' \
index e688bbf8fc082724e2dc5c2fc4457929776140a3..ed636e45c19b965f96d562f7a60f8e53ceab330d 100644 (file)
@@ -41,8 +41,9 @@ RUN if [ "${DOCKER_FAKE_RELEASE}" = "YES" ]; then \
     BUILDER_MODULES=dnsdist autoreconf -vfi
 
 RUN mkdir /build && \
-    /bin/bash -c ./configure \
-      --with-lua=$([[ "${NO_LUA_JIT}" == *"$(uname -m)"* ]] && echo "lua5.3" || echo "luajit") \
+    LUAVER=$([ -z "${NO_LUA_JIT##*$(uname -m)*}" ] && echo 'lua5.3' || echo 'luajit') && \
+    ./configure \
+      --with-lua=${LUAVER} \
       LDFLAGS=-rdynamic \
       --sysconfdir=/etc/dnsdist \
       --enable-option-checking=fatal \
index 8bd1b47eb0b03d5f4b37fcd2599004f55e8bbf01..ef8a56358f1532a88673b36b07ab7d92adcfa1a2 100644 (file)
@@ -49,8 +49,9 @@ RUN if [ "${DOCKER_FAKE_RELEASE}" = "YES" ]; then \
     BUILDER_MODULES=recursor autoreconf -vfi
 
 RUN mkdir /build && \
-    /bin/bash -c ./configure \
-      --with-lua=$([[ "${NO_LUA_JIT}" == *"$(uname -m)"* ]] && echo "lua5.3" || echo "luajit")  \
+    LUAVER=$([ -z "${NO_LUA_JIT##*$(uname -m)*}" ] && echo 'lua5.3' || echo 'luajit') && \
+    ./configure \
+      --with-lua=${LUAVER} \
       LDFLAGS=-rdynamic \
       --sysconfdir=/etc/powerdns \
       --enable-option-checking=fatal && \