From a8f9274eefeb55db5fddba9e677bebe58f612b23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= <121604513+yonggekkk@users.noreply.github.com> Date: Mon, 24 Feb 2025 09:10:59 +0800 Subject: [PATCH] Update serv00.sh --- serv00.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/serv00.sh b/serv00.sh index a56ca5f..ed04bca 100644 --- a/serv00.sh +++ b/serv00.sh @@ -1373,7 +1373,12 @@ echo -e "${yellow}$(curl -sL https://raw.githubusercontent.com/yonggekkk/sing-bo fi echo -e "=========================================================" showuuid=$(jq -r '.inbounds[0].users[0].password' $WORKDIR/config.json 2>/dev/null) -ps aux | grep '[r]un -c con' > /dev/null && green "Sing-box主进程运行正常 UUID:$showuuid" || yellow "Sing-box主进程启动失败,请检测节点是否可用" +if ps aux | grep '[r]un -c con' > /dev/null; then +green "Sing-box主进程运行正常" +green "UUID密码:$showuuid" +else +yellow "Sing-box主进程启动失败,请检测节点是否可用" +fi if [ -f "$WORKDIR/boot.log" ] && grep -q "trycloudflare.com" "$WORKDIR/boot.log" 2>/dev/null && ps aux | grep '[t]unnel --u' > /dev/null; then argosl=$(cat "$WORKDIR/boot.log" 2>/dev/null | grep -a trycloudflare.com | awk 'NR==2{print}' | awk -F// '{print $2}' | awk '{print $1}') checkhttp=$(curl -o /dev/null -s -w "%{http_code}\n" "https://$argosl")