From 64d4a9d9c293ff8d09d3a9a2e2c92fdf48b75f08 Mon Sep 17 00:00:00 2001 From: James-Crowley Date: Mon, 8 Feb 2021 13:38:00 -0500 Subject: [PATCH] Fixing shell command to work with sh not bash. Also setting LUAVER now --- Dockerfile-auth | 5 +++-- Dockerfile-dnsdist | 5 +++-- Dockerfile-recursor | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Dockerfile-auth b/Dockerfile-auth index 403a83ffe6..c5fa4a386b 100644 --- a/Dockerfile-auth +++ b/Dockerfile-auth @@ -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' \ diff --git a/Dockerfile-dnsdist b/Dockerfile-dnsdist index e688bbf8fc..ed636e45c1 100644 --- a/Dockerfile-dnsdist +++ b/Dockerfile-dnsdist @@ -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 \ diff --git a/Dockerfile-recursor b/Dockerfile-recursor index 8bd1b47eb0..ef8a56358f 100644 --- a/Dockerfile-recursor +++ b/Dockerfile-recursor @@ -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 && \ -- 2.47.2