v1.0.0beta17.7
~修复定时更新订阅时不会重启clash服务的bug
This commit is contained in:
@@ -955,7 +955,7 @@ clashcron(){
|
|||||||
setcron
|
setcron
|
||||||
elif [ "$num" = 4 ]; then
|
elif [ "$num" = 4 ]; then
|
||||||
cronname=更新订阅链接
|
cronname=更新订阅链接
|
||||||
cronset="$clashdir/start.sh getyaml"
|
cronset="$clashdir/start.sh updateyaml"
|
||||||
setcron
|
setcron
|
||||||
|
|
||||||
else
|
else
|
||||||
@@ -999,7 +999,6 @@ clashsh(){
|
|||||||
$clashdir/start.sh stop
|
$clashdir/start.sh stop
|
||||||
echo -----------------------------------------------
|
echo -----------------------------------------------
|
||||||
echo -e "\033[31mClash服务已停止!\033[0m"
|
echo -e "\033[31mClash服务已停止!\033[0m"
|
||||||
echo -----------------------------------------------
|
|
||||||
clashsh
|
clashsh
|
||||||
|
|
||||||
elif [ "$num" = 4 ]; then
|
elif [ "$num" = 4 ]; then
|
||||||
|
|||||||
@@ -614,6 +614,10 @@ getyaml)
|
|||||||
getconfig
|
getconfig
|
||||||
getyaml
|
getyaml
|
||||||
;;
|
;;
|
||||||
|
updateyaml)
|
||||||
|
$0 getyaml
|
||||||
|
$0 restart
|
||||||
|
;;
|
||||||
webget)
|
webget)
|
||||||
webget $2 $3 $4 $5
|
webget $2 $3 $4 $5
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user