Skip to content

Commit

Permalink
update ngx_install
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew (leap151) committed Mar 23, 2020
1 parent a00a62f commit 68724f5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ngx_install
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ main() {
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-ssl-nginx-module.git/lualib/?.lua;"

LB="$LB$PARENTF/opt/lua-resty-signal.git/lib/?.lua;"
LB="$LB$PARENTF/opt/lua-tablepool.git/lib/?.lua;"
Expand All @@ -78,18 +78,26 @@ main() {

echo "lua_package_path \"$LB;\";"
echo "lua_package_cpath \"$CLB;\";"
echo "lua_package_path \"$LB;\";" > "$PARENTF/lua_package_path"
echo "lua_package_cpath \"$CLB;\";" >> "$PARENTF/lua_package_path"
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;"
LB="$LB/opt/lua-ssl-nginx-module.git/lualib/?.lua;"

LB="$LB/opt/lua-resty-signal.git/lib/?.lua;"
LB="$LB/opt/lua-tablepool.git/lib/?.lua;"
LB="$LB/opt/lua-resty-shell.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;\";"
echo "lua_package_path \"$LB;\";" > "$PARENTF/lua_package_path"
echo "lua_package_cpath \"$CLB;\";" >> "$PARENTF/lua_package_path"
fi
echo
read -p "Press [Enter] key to continue..."
Expand Down

0 comments on commit 68724f5

Please sign in to comment.