reorg modules

This commit is contained in:
moicen
2022-06-28 23:46:51 +08:00
committed by 木逸辰
parent f06c818f4a
commit 2357fa3d7e
8 changed files with 28 additions and 16 deletions
+4 -3
View File
@@ -21,14 +21,15 @@ echo $openresty_lua_scripts_dir
# -- Make scripts dir
mkdir -p $openresty_lua_scripts_dir
# -- Copy scripts file
cp scripts/*.lua $openresty_lua_scripts_dir
cp -r scripts/* $openresty_lua_scripts_dir
# -- Copy tests
mkdir -p $openresty_lua_scripts_dir/tests/
cp test_scripts/*.lua $openresty_lua_scripts_dir/tests/
# -- Replace scripts path in file
sed -i -e "s|<SCRIPT_PATH>|$openresty_lua_scripts_dir|" \
"$openresty_lua_scripts_dir"/*.lua
sed -i -e "s|<SCRIPT_PATH>|$openresty_lua_scripts_dir|g" \
"$openresty_lua_scripts_dir"/*.lua \
"$openresty_lua_scripts_dir"/lib/*.lua \
# Reload openresty
openresty -t