From 3ef6effe786c289573611f488932a8d29487b98f Mon Sep 17 00:00:00 2001 From: juewuy Date: Sat, 12 Dec 2020 12:20:22 +0800 Subject: [PATCH] =?UTF-8?q?v1.0.0beta17.7=20~=E4=BF=AE=E5=A4=8D=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E6=9B=B4=E6=96=B0=E8=AE=A2=E9=98=85=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E9=87=8D=E5=90=AFclash=E6=9C=8D=E5=8A=A1=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/clash.sh | 3 +-- scripts/start.sh | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/clash.sh b/scripts/clash.sh index 310368d..74f24ae 100644 --- a/scripts/clash.sh +++ b/scripts/clash.sh @@ -955,7 +955,7 @@ clashcron(){ setcron elif [ "$num" = 4 ]; then cronname=更新订阅链接 - cronset="$clashdir/start.sh getyaml" + cronset="$clashdir/start.sh updateyaml" setcron else @@ -999,7 +999,6 @@ clashsh(){ $clashdir/start.sh stop echo ----------------------------------------------- echo -e "\033[31mClash服务已停止!\033[0m" - echo ----------------------------------------------- clashsh elif [ "$num" = 4 ]; then diff --git a/scripts/start.sh b/scripts/start.sh index bcf47c1..495703d 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -614,6 +614,10 @@ getyaml) getconfig getyaml ;; +updateyaml) + $0 getyaml + $0 restart + ;; webget) webget $2 $3 $4 $5 ;;