@@ -401,7 +401,7 @@ check_status
401401if [[ $? == 1 ]]; then
402402crontab -l 2> /dev/null > /tmp/crontab.tmp
403403sed -i ' /goxui.sh/d' /tmp/crontab.tmp
404- crontab /tmp/crontab.tmp
404+ crontab /tmp/crontab.tmp > /dev/null 2>&1
405405rm /tmp/crontab.tmp
406406green " x-ui停止成功"
407407else
@@ -421,11 +421,11 @@ check_status
421421if [[ $? == 0 ]]; then
422422crontab -l 2> /dev/null > /tmp/crontab.tmp
423423sed -i ' /goxui.sh/d' /tmp/crontab.tmp
424- crontab /tmp/crontab.tmp
424+ crontab /tmp/crontab.tmp > /dev/null 2>&1
425425rm /tmp/crontab.tmp
426426crontab -l 2> /dev/null > /tmp/crontab.tmp
427427echo " * * * * * /usr/local/x-ui/goxui.sh" >> /tmp/crontab.tmp
428- crontab /tmp/crontab.tmp
428+ crontab /tmp/crontab.tmp > /dev/null 2>&1
429429rm /tmp/crontab.tmp
430430green " x-ui重启成功"
431431else
@@ -635,7 +635,7 @@ uncronxui
635635crontab -l 2> /dev/null > /tmp/crontab.tmp
636636echo " * * * * * /usr/local/x-ui/goxui.sh" >> /tmp/crontab.tmp
637637echo " 0 2 * * * systemctl restart x-ui" >> /tmp/crontab.tmp
638- crontab /tmp/crontab.tmp
638+ crontab /tmp/crontab.tmp > /dev/null 2>&1
639639rm /tmp/crontab.tmp
640640}
641641
@@ -647,7 +647,7 @@ sed -i '/xuiargoport.log/d' /tmp/crontab.tmp
647647sed -i ' /xuiargopid.log/d' /tmp/crontab.tmp
648648sed -i ' /xuiargoympid/d' /tmp/crontab.tmp
649649sed -i ' /xuiwpphid.log/d' /tmp/crontab.tmp
650- crontab /tmp/crontab.tmp
650+ crontab /tmp/crontab.tmp > /dev/null 2>&1
651651rm /tmp/crontab.tmp
652652}
653653
816816done
817817crontab -l 2> /dev/null > /tmp/crontab.tmp
818818sed -i ' /xuiargoport.log/d' /tmp/crontab.tmp
819- crontab /tmp/crontab.tmp
819+ crontab /tmp/crontab.tmp > /dev/null 2>&1
820820rm /tmp/crontab.tmp
821821crontab -l 2> /dev/null > /tmp/crontab.tmp
822822echo ' @reboot /bin/bash -c "/usr/local/x-ui/cloudflared tunnel --url http://localhost:$(cat /usr/local/x-ui/xuiargoport.log) --edge-ip-version auto --no-autoupdate --protocol http2 > /usr/local/x-ui/argo.log 2>&1 & pid=\$! && echo \$pid > /usr/local/x-ui/xuiargopid.log"' >> /tmp/crontab.tmp
823- crontab /tmp/crontab.tmp
823+ crontab /tmp/crontab.tmp > /dev/null 2>&1
824824rm /tmp/crontab.tmp
825825elif [ " $menu " = " 2" ]; then
826826kill -15 $( cat /usr/local/x-ui/xuiargopid.log 2> /dev/null) > /dev/null 2>&1
827827rm -rf /usr/local/x-ui/argo.log /usr/local/x-ui/xuiargopid.log /usr/local/x-ui/xuiargoport.log
828828crontab -l 2> /dev/null > /tmp/crontab.tmp
829829sed -i ' /xuiargopid.log/d' /tmp/crontab.tmp
830- crontab /tmp/crontab.tmp
830+ crontab /tmp/crontab.tmp > /dev/null 2>&1
831831rm /tmp/crontab.tmp
832832green " 已卸载Argo临时隧道"
833833else
@@ -866,7 +866,7 @@ echo ${argotoken} > /usr/local/x-ui/xuiargotoken.log
866866crontab -l 2> /dev/null > /tmp/crontab.tmp
867867sed -i ' /xuiargoympid/d' /tmp/crontab.tmp
868868echo ' @reboot /bin/bash -c "nohup setsid /usr/local/x-ui/cloudflared tunnel --no-autoupdate --edge-ip-version auto --protocol http2 run --token $(cat /usr/local/x-ui/xuiargotoken.log 2>/dev/null) >/dev/null 2>&1 & pid=\$! && echo \$pid > /usr/local/x-ui/xuiargoympid.log"' >> /tmp/crontab.tmp
869- crontab /tmp/crontab.tmp
869+ crontab /tmp/crontab.tmp > /dev/null 2>&1
870870rm /tmp/crontab.tmp
871871argo=$( cat /usr/local/x-ui/xuiargoym.log 2> /dev/null)
872872blue " Argo固定隧道设置完成,固定域名:$argo "
@@ -875,7 +875,7 @@ kill -15 $(cat /usr/local/x-ui/xuiargoympid.log 2>/dev/null) >/dev/null 2>&1
875875rm -rf /usr/local/x-ui/xuiargoym.log /usr/local/x-ui/xuiargoymport.log /usr/local/x-ui/xuiargoympid.log /usr/local/x-ui/xuiargotoken.log
876876crontab -l 2> /dev/null > /tmp/crontab.tmp
877877sed -i ' /xuiargoympid/d' /tmp/crontab.tmp
878- crontab /tmp/crontab.tmp
878+ crontab /tmp/crontab.tmp > /dev/null 2>&1
879879rm /tmp/crontab.tmp
880880green " 已卸载Argo固定隧道"
881881else
@@ -2389,7 +2389,7 @@ kill -15 $(cat /usr/local/x-ui/xuiwpphid.log 2>/dev/null) >/dev/null 2>&1
23892389rm -rf /usr/local/x-ui/xuiwpph.log /usr/local/x-ui/xuiwpphid.log
23902390crontab -l 2> /dev/null > /tmp/crontab.tmp
23912391sed -i ' /xuiwpphid.log/d' /tmp/crontab.tmp
2392- crontab /tmp/crontab.tmp
2392+ crontab /tmp/crontab.tmp > /dev/null 2>&1
23932393rm /tmp/crontab.tmp
23942394}
23952395echo
@@ -2411,7 +2411,7 @@ echo "/usr/local/x-ui/xuiwpph -b 127.0.0.1:$port --gool -$sw46 --endpoint 162.15
24112411crontab -l 2> /dev/null > /tmp/crontab.tmp
24122412sed -i ' /xuiwpphid.log/d' /tmp/crontab.tmp
24132413echo ' @reboot /bin/bash -c "nohup setsid $(cat /usr/local/x-ui/xuiwpph.log 2>/dev/null) & pid=\$! && echo \$pid > /usr/local/x-ui/xuiwpphid.log"' >> /tmp/crontab.tmp
2414- crontab /tmp/crontab.tmp
2414+ crontab /tmp/crontab.tmp > /dev/null 2>&1
24152415rm /tmp/crontab.tmp
24162416green " WARP-plus-Socks5的IP获取成功,可进行Socks5代理分流"
24172417fi
@@ -2463,7 +2463,7 @@ echo "/usr/local/x-ui/xuiwpph -b 127.0.0.1:$port --cfon --country $guojia -$sw46
24632463crontab -l 2> /dev/null > /tmp/crontab.tmp
24642464sed -i ' /xuiwpphid.log/d' /tmp/crontab.tmp
24652465echo ' @reboot /bin/bash -c "nohup setsid $(cat /usr/local/x-ui/xuiwpph.log 2>/dev/null) & pid=\$! && echo \$pid > /usr/local/x-ui/xuiwpphid.log"' >> /tmp/crontab.tmp
2466- crontab /tmp/crontab.tmp
2466+ crontab /tmp/crontab.tmp > /dev/null 2>&1
24672467rm /tmp/crontab.tmp
24682468green " WARP-plus-Socks5的IP获取成功,可进行Socks5代理分流"
24692469fi
0 commit comments