Skip to content

Commit

Permalink
chore(ngx): add KONG_DISTRIBUTION_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
mayocream committed Nov 11, 2022
1 parent e0e5f5e commit 14e838d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions openresty-build-tools/kong-ngx-build
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ OS=
DIST=
DIST_VER=
NGINX_EXTRA_MODULES=()
KONG_DISTRIBUTION_PATH=${KONG_DISTRIBUTION_PATH:-/distribution}

PARAMS=""

Expand Down Expand Up @@ -758,9 +759,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
Expand Down Expand Up @@ -857,7 +858,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

Expand Down

0 comments on commit 14e838d

Please sign in to comment.