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 ;;