diff --git a/Scripts/sh/1customCDN.sh b/Scripts/sh/1customCDN.sh index 07c76de..a7cfd77 100644 --- a/Scripts/sh/1customCDN.sh +++ b/Scripts/sh/1customCDN.sh @@ -215,23 +215,24 @@ set_bot_json(){ sed -i "s/456423156/${api_id}/" $bot_json sed -i "s/ASDFAWEFADSFAWEFDSFASFD/${api_hash}/" $bot_json } -# 再运行一次 ql bot -run_ql_bot(){ - ql bot +# 重启 +ql_restart(){ + ql restart } if [ "${all}" = 1 ]; then - add_ql_bot && set_bot_json && run_ql_bot + add_ql_bot && set_bot_json && ql_restart else case ${bot} in 0) echo "已为您跳过 bot 操作" ;; 1) add_ql_bot ;; - 2) add_ql_bot && set_bot_json && run_ql_bot + 2) add_ql_bot && set_bot_json && ql_restart esac fi + # 添加定时任务 自动更新模板 add_curl_sample(){ if [ "$(grep -c "config.sample.sh" /ql/config/crontab.list)" != 0 ]; then