diff --git a/openresty-build-tools/kong-ngx-build b/openresty-build-tools/kong-ngx-build index 8576cc04..dda57b7d 100755 --- a/openresty-build-tools/kong-ngx-build +++ b/openresty-build-tools/kong-ngx-build @@ -28,6 +28,7 @@ OS= DIST= DIST_VER= NGINX_EXTRA_MODULES=() +KONG_DISTRIBUTION_PATH=${KONG_DISTRIBUTION_PATH:-/distribution} PARAMS="" @@ -766,9 +767,9 @@ main() { if [ "$EDITION" == 'enterprise' ]; then if [ "$ENABLE_KONG_LICENSING" != "false" ]; then - OPENRESTY_OPTS+=('--add-module=/distribution/kong-licensing/ngx_module') + OPENRESTY_OPTS+=("--add-module=$KONG_DISTRIBUTION_PATH/kong-licensing/ngx_module") fi - OPENRESTY_OPTS+=('--add-module=/distribution/lua-resty-openssl-aux-module') + OPENRESTY_OPTS+=("--add-module=$KONG_DISTRIBUTION_PATH/lua-resty-openssl-aux-module") fi if [ $KONG_NGINX_MODULE != 0 ]; then @@ -866,7 +867,7 @@ main() { # the env script adds the cargo bin dir to PATH if missing which cargo > /dev/null || source "${CARGO_HOME:-$HOME/.cargo}"/env - + # the atc-router makefile also tests for availability of cargo make install LUA_LIB_DIR=$OPENRESTY_INSTALL/lualib || atc_router_install_succeed=1