From 4e1bbf82ad78e3d1c7f15d4efc8adae3a4509b23 Mon Sep 17 00:00:00 2001 From: "Andrey (muz)" Date: Wed, 11 Mar 2020 15:23:02 +0300 Subject: [PATCH] ngx_install: show nginx config for lua_package_path --- ngx_install | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/ngx_install b/ngx_install index e0bd4615..d06c057d 100755 --- a/ngx_install +++ b/ngx_install @@ -60,6 +60,40 @@ main() { read -p "Press [Enter] key to continue..." popd + echo + notice "save these strings:" + if [ $IS_LOCAL == 1 ]; then + local LB="$PARENTF/opt/lua-resty-core.git/lib/?.lua;" + LB="$LB$PARENTF/opt/lua-resty-lrucache.git/lib/?.lua;" + LB="$LB$PARENTF/opt/lua-resty-redis.git/lib/?.lua;" + LB="$LB$PARENTF/opt/lua-resty-mysql.git/lib/?.lua;" + LB="$LB$PARENTF/opt/lua-ssl-nginx-module.git/lib/?.lua;" + + LB="$LB$PARENTF/opt/lua-resty-signal.git/lib/?.lua;" + LB="$LB$PARENTF/opt/lua-tablepool.git/lib/?.lua;" + LB="$LB$PARENTF/opt/lua-resty-shell.git/lib/?.lua;" + + local CLB="$PARENTF/opt/lua-cjson.git/?.so;" + CLB="$CLB$PARENTF/opt/lua-resty-signal.git/?.so;" + + echo "lua_package_path \"$LB;\";" + echo "lua_package_cpath \"$CLB;\";" + else + local LB="/opt/lua-resty-core.git/lib/?.lua;" + LB="$LB/opt/lua-resty-lrucache.git/lib/?.lua;" + LB="$LB/opt/lua-resty-redis.git/lib/?.lua;" + LB="$LB/opt/lua-resty-mysql.git/lib/?.lua;" + LB="$LB/opt/lua-ssl-nginx-module.git/lib/?.lua;" + + local CLB="/opt/lua-cjson.git/?.so;" + CLB="$CLB/opt/lua-resty-signal.git/?.so;" + + echo "lua_package_path \"$LB;\";" + echo "lua_package_cpath \"$CLB;\";" + fi + echo + read -p "Press [Enter] key to continue..." + make_configure }