modify details

This commit is contained in:
liyong
2022-02-08 14:14:57 +08:00
committed by XiaoLi
parent 022679a784
commit 9c4c0ccb2c
7 changed files with 7 additions and 7 deletions
@@ -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
View File
@@ -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
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 = {}