update
This commit is contained in:
parent
35b0e40527
commit
fda3233478
@ -46,7 +46,7 @@ check_url() {
|
||||
|
||||
# 获取有效 config.sh 链接
|
||||
get_valid_config() {
|
||||
config_list=(https://raw.githubusercontents.com/yanyuwangluo/VIP/main/Conf/Qinglong/config.sample.sh)
|
||||
config_list=(https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Conf/Qinglong/config.sample.sh)
|
||||
for url in ${config_list[@]}; do
|
||||
check_url $url
|
||||
if [ $? = 0 ]; then
|
||||
@ -79,7 +79,7 @@ fi
|
||||
|
||||
# 获取有效 extra.sh 链接
|
||||
get_valid_extra() {
|
||||
extra_list=(https://raw.githubusercontents.com/yanyuwangluo/VIP/main/Tasks/qlrepo/extra.sh)
|
||||
extra_list=(https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Tasks/qlrepo/extra.sh)
|
||||
for url in ${extra_list[@]}; do
|
||||
check_url $url
|
||||
if [ $? = 0 ]; then
|
||||
@ -222,7 +222,7 @@ fi
|
||||
|
||||
# 获取有效 task_before.sh 链接
|
||||
get_valid_task_before() {
|
||||
task_before_list=(https://raw.githubusercontents.com/yanyuwangluo/VIP/main/Scripts/sh/Helpcode2.8/task_before.sh)
|
||||
task_before_list=(https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/Helpcode2.8/task_before.sh)
|
||||
for url in ${task_before_list[@]}; do
|
||||
check_url $url
|
||||
if [ $? = 0 ]; then
|
||||
@ -307,7 +307,7 @@ add_curl_sample() {
|
||||
echo "开始添加 task:curl config.sample.sh"
|
||||
# 获取token
|
||||
token=$(cat /ql/config/auth.json | jq --raw-output .token)
|
||||
curl -s -H 'Accept: application/json' -H "Authorization: Bearer $token" -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept-Language: zh-CN,zh;q=0.9' --data-binary '{"name":"自动更新模板","command":"curl -L https://raw.githubusercontents.com/yanyuwangluo/VIP/main/Conf/Qinglong/config.sample.sh -o /ql/sample/config.sample.sh && cp -rf /ql/sample/config.sample.sh /ql/config","schedule":"45 6,18 * * *"}' --compressed 'http://127.0.0.1:5700/api/crons?t=1627380635389'
|
||||
curl -s -H 'Accept: application/json' -H "Authorization: Bearer $token" -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept-Language: zh-CN,zh;q=0.9' --data-binary '{"name":"自动更新模板","command":"curl -L https://yanyu.ltd/https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Conf/Qinglong/config.sample.sh -o /ql/sample/config.sample.sh && cp -rf /ql/sample/config.sample.sh /ql/config","schedule":"45 6,18 * * *"}' --compressed 'http://127.0.0.1:5700/api/crons?t=1627380635389'
|
||||
fi
|
||||
}
|
||||
run_curl_sample() {
|
||||
|
||||
@ -322,9 +322,9 @@ docker ps
|
||||
if [ "$pannel" != "2" ]; then
|
||||
log "5.开始安装面板"
|
||||
if [ "$image" = "1" -o "$image" = "5" ]; then
|
||||
url="https://raw.githubusercontents.com/Annyoo2021/jd_v4_bot/main/v4mb.sh"
|
||||
url="https://yanyu.ltd/https://raw.githubusercontent.com/Annyoo2021/jd_v4_bot/main/v4mb.sh"
|
||||
else
|
||||
url="https://raw.githubusercontents.com/jiulan/jd_v4/main/v4mb.sh"
|
||||
url="https://yanyu.ltd/https://raw.githubusercontent.com/jiulan/jd_v4/main/v4mb.sh"
|
||||
fi
|
||||
docker exec $CONTAINER_NAME bash -c "$(curl -fsSL $url)"
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user