reorg modules
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user