Update serv00.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2025-01-05 16:03:45 +08:00
committed by GitHub
parent b582d1721d
commit cd37e3bbae
+9 -3
View File
@@ -1103,8 +1103,7 @@ menu() {
green "甬哥Blogger博客 ygkkk.blogspot.com" green "甬哥Blogger博客 ygkkk.blogspot.com"
green "甬哥YouTube频道 www.youtube.com/@ygkkk" green "甬哥YouTube频道 www.youtube.com/@ygkkk"
green "一键三协议共存:vless-reality、Vmess-ws(Argo)、hysteria2" green "一键三协议共存:vless-reality、Vmess-ws(Argo)、hysteria2"
green "脚本使用视频教程:https://youtu.be/2VF9D6z2z7w" green "当前脚本版本:V25.1.8 快捷方式:bash serv00.sh"
green "当前脚本版本:V24.12.27 快捷方式:bash serv00.sh"
echo "=========================================================" echo "========================================================="
green "1. 安装sing-box" green "1. 安装sing-box"
echo "---------------------------------------------------------" echo "---------------------------------------------------------"
@@ -1150,9 +1149,16 @@ green "已安装sing-box"
ps aux | grep '[c]onfig' > /dev/null && green "主进程运行正常" || yellow "主进程启动中……2分钟后可再次进入脚本查看" ps aux | grep '[c]onfig' > /dev/null && green "主进程运行正常" || yellow "主进程启动中……2分钟后可再次进入脚本查看"
if [ -f "$WORKDIR/boot.log" ] && grep -q "trycloudflare.com" "$WORKDIR/boot.log" 2>/dev/null && ps aux | grep [l]ocalhost > /dev/null; then if [ -f "$WORKDIR/boot.log" ] && grep -q "trycloudflare.com" "$WORKDIR/boot.log" 2>/dev/null && ps aux | grep [l]ocalhost > /dev/null; then
green "当前Argo临时域名:$(grep -oE 'https://[[:alnum:]+\.-]+\.trycloudflare\.com' $WORKDIR/boot.log 2>/dev/null | sed 's@https://@@')" green "当前Argo临时域名:$(grep -oE 'https://[[:alnum:]+\.-]+\.trycloudflare\.com' $WORKDIR/boot.log 2>/dev/null | sed 's@https://@@')"
elif ps aux | grep [t]oken > /dev/null; then fi
if [ -f "$WORKDIR/boot.log" ] && ! ps aux | grep [l]ocalhost > /dev/null; then
yellow "当前Argo临时域名暂时不存在,后台会继续生成有效的临时域名,稍后可再次进入脚本查看"
fi
if ps aux | grep [t]oken > /dev/null; then
green "当前Argo固定域名:$(cat $WORKDIR/gdym.log 2>/dev/null)" green "当前Argo固定域名:$(cat $WORKDIR/gdym.log 2>/dev/null)"
fi fi
if [ ! -f "$WORKDIR/boot.log" ] && ! ps aux | grep [t]oken > /dev/null; then
yellow "当前Argo固定域名:$(cat $WORKDIR/gdym.log 2>/dev/null),请检查相关参数是否输入有误,建议卸载重装"
fi
if ! crontab -l 2>/dev/null | grep -q 'serv00keep'; then if ! crontab -l 2>/dev/null | grep -q 'serv00keep'; then
if [ -f "$WORKDIR/boot.log" ] || grep -q "trycloudflare.com" "$WORKDIR/boot.log" 2>/dev/null; then if [ -f "$WORKDIR/boot.log" ] || grep -q "trycloudflare.com" "$WORKDIR/boot.log" 2>/dev/null; then
check_process="! ps aux | grep '[c]onfig' > /dev/null || ! ps aux | grep [l]ocalhost > /dev/null" check_process="! ps aux | grep '[c]onfig' > /dev/null || ! ps aux | grep [l]ocalhost > /dev/null"