❌Del ghproxy
This commit is contained in:
parent
85a91c0e49
commit
55115057ea
@ -13,7 +13,7 @@ task_before_shell_path=$dir_shell/task_before.sh
|
||||
if [ ! -a "$config_shell_path" ]; then
|
||||
touch $config_shell_path
|
||||
fi
|
||||
curl -s --connect-timeout 3 https://ghproxy.com/https://raw.githubusercontent.com/Oreomeow/VIP/main/Conf/Qinglong/config.sample.sh > $config_shell_path
|
||||
curl -s --connect-timeout 3 https://raw.githubusercontent.com/Oreomeow/VIP/main/Conf/Qinglong/config.sample.sh > $config_shell_path
|
||||
cp $config_shell_path $dir_shell/config.sh
|
||||
|
||||
# 判断是否下载成功
|
||||
@ -28,7 +28,7 @@ fi
|
||||
if [ ! -a "$extra_shell_path" ]; then
|
||||
touch $extra_shell_path
|
||||
fi
|
||||
curl -s --connect-timeout 3 https://ghproxy.com/https://raw.githubusercontent.com/Oreomeow/VIP/main/Tasks/qlrepo/extra.sh > $extra_shell_path
|
||||
curl -s --connect-timeout 3 https://raw.githubusercontent.com/Oreomeow/VIP/main/Tasks/qlrepo/extra.sh > $extra_shell_path
|
||||
cp $extra_shell_path $dir_shell/extra.sh
|
||||
|
||||
# 判断是否下载成功
|
||||
@ -61,7 +61,7 @@ fi
|
||||
if [ ! -a "$code_shell_path" ]; then
|
||||
touch $code_shell_path
|
||||
fi
|
||||
curl -s --connect-timeout 3 https://ghproxy.com/https://raw.githubusercontent.com/Oreomeow/VIP/main/Scripts/sh/Helpcode2.8/code.sh > $code_shell_path
|
||||
curl -s --connect-timeout 3 https://raw.githubusercontent.com/Oreomeow/VIP/main/Scripts/sh/Helpcode2.8/code.sh > $code_shell_path
|
||||
cp $code_shell_path $dir_shell/code.sh
|
||||
|
||||
# 判断是否下载成功
|
||||
@ -91,7 +91,7 @@ fi
|
||||
|
||||
|
||||
# 下载 task_before.sh
|
||||
curl -s --connect-timeout 3 https://ghproxy.com/https://raw.githubusercontent.com/Oreomeow/VIP/main/Scripts/sh/Helpcode2.8/task_before.sh > $task_before_shell_path
|
||||
curl -s --connect-timeout 3 https://raw.githubusercontent.com/Oreomeow/VIP/main/Scripts/sh/Helpcode2.8/task_before.sh > $task_before_shell_path
|
||||
|
||||
# 判断是否下载成功
|
||||
task_before_size=$(ls -l $task_before_shell_path | awk '{print $5}')
|
||||
@ -107,4 +107,4 @@ if [ "$(grep -c bot /ql/config/crontab.list)" = 0 ]; then
|
||||
# 获取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":"ql bot","schedule":"13 14 * * *"}' --compressed 'http://127.0.0.1:5700/api/crons?t=1626247933219'
|
||||
fi
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user