Skip to content

Commit

Permalink
ngx_install: show nginx config for lua_package_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey (muz) committed Mar 11, 2020
1 parent 0cbda28 commit 4e1bbf8
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions ngx_install
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
Expand Down

0 comments on commit 4e1bbf8

Please sign in to comment.