modify details
This commit is contained in:
@@ -28,7 +28,7 @@ cp scripts/*.lua $openresty_lua_scripts_dir
|
||||
# -- Replace scripts path in file
|
||||
replaced_scripts_path=$(echo $openresty_lua_scripts_dir | sed 's_/_\\/_g')
|
||||
echo "$replaced_scripts_path"
|
||||
sed -i -e "s/\$script_path/$replaced_scripts_path/" \
|
||||
sed -i -e "s/SCRIPT_PATH/$replaced_scripts_path/" \
|
||||
"$openresty_lua_scripts_dir"/combine.lua \
|
||||
"$openresty_lua_scripts_dir"/convert_audio.lua \
|
||||
"$openresty_lua_scripts_dir"/test_upyun_upload.lua \
|
||||
@@ -28,7 +28,7 @@ cp scripts/*.lua $openresty_lua_scripts_dir
|
||||
# -- Replace scripts path in file
|
||||
replaced_scripts_path=$(echo $openresty_lua_scripts_dir | sed 's_/_\\/_g')
|
||||
echo "$replaced_scripts_path"
|
||||
sed -i -e "s/\$script_path/$replaced_scripts_path/" \
|
||||
sed -i -e "s/<SCRIPT_PATH>/$replaced_scripts_path/" \
|
||||
"$openresty_lua_scripts_dir"/combine.lua \
|
||||
"$openresty_lua_scripts_dir"/convert_audio.lua \
|
||||
"$openresty_lua_scripts_dir"/test_upyun_upload.lua \
|
||||
|
||||
@@ -28,7 +28,7 @@ cp scripts/*.lua $openresty_lua_scripts_dir
|
||||
# -- Replace scripts path in file
|
||||
replaced_scripts_path=$(echo $openresty_lua_scripts_dir | sed 's_/_\\/_g')
|
||||
echo "$replaced_scripts_path"
|
||||
sed -i -e "s/\$script_path/$replaced_scripts_path/" \
|
||||
sed -i -e "s/SCRIPT_PATH/$replaced_scripts_path/" \
|
||||
"$openresty_lua_scripts_dir"/combine.lua \
|
||||
"$openresty_lua_scripts_dir"/convert_audio.lua \
|
||||
"$openresty_lua_scripts_dir"/test_upyun_upload.lua \
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
-- 指定模块引用目录,否则无法加载同目录下的其他文件
|
||||
--package.path = package.path .. ';/usr/local/opt/openresty/nginx/scripts/?.lua';
|
||||
package.path = package.path .. ';$script_path/?.lua';
|
||||
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
|
||||
|
||||
local uuid = require "resty.jit-uuid"
|
||||
local cjson = require "cjson"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-- 指定模块引用目录,否则无法加载同目录下的其他文件
|
||||
--package.path = package.path .. ';/usr/local/opt/openresty/nginx/scripts/?.lua';
|
||||
package.path = package.path .. ';$script_path/?.lua';
|
||||
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
|
||||
|
||||
local cjson = require "cjson"
|
||||
local uuid = require "resty.jit-uuid"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-- 指定模块引用目录,否则无法加载同目录下的其他文件
|
||||
--package.path = package.path .. ';/usr/local/opt/openresty/nginx/scripts/?.lua';
|
||||
package.path = package.path .. ';$script_path/?.lua';
|
||||
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
|
||||
|
||||
local yun = require("upyun")
|
||||
local cjson = require "cjson"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-- 指定模块引用目录,否则无法加载同目录下的其他文件
|
||||
--package.path = package.path .. ';/usr/local/opt/openresty/nginx/scripts/?.lua';
|
||||
package.path = package.path .. ';$script_path/?.lua';
|
||||
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
|
||||
|
||||
local upyun_upload = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user