From a005dcb4273a5dce9f16ad58f6b9bdc322a8093c Mon Sep 17 00:00:00 2001 From: Eloy Coto Date: Tue, 18 May 2021 17:40:19 +0200 Subject: [PATCH] Openresty Update: Add openresty to path Signed-off-by: Eloy Coto --- gateway/bin/apicast | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway/bin/apicast b/gateway/bin/apicast index f5637813e..aa4c573bd 100755 --- a/gateway/bin/apicast +++ b/gateway/bin/apicast @@ -68,11 +68,11 @@ if ($rover && !$lua_path) { $lua_lib ||= ';'; } -$ENV{APICAST_DIR} = $apicast_conf; -$ENV{LUA_PATH} = sprintf('%1$s/?.lua;', $apicast_src) . $lua_path; -$ENV{LUA_CPATH} = sprintf('%1$s/?.so;', $apicast_lib) . $lua_lib; +$ENV{APICAST_DIR} = $apicast_conf; +$ENV{LUA_PATH} = sprintf('%1$s/?.lua;', $apicast_src) . $lua_path . t "/usr/local/openresty/lualib/?.lua"; +$ENV{LUA_CPATH} = sprintf('%1$s/?.so;', $apicast_lib) . $lua_lib; $ENV{PWD} = $cwd; $ENV{ARGV0} = $0;