Update serv00.sh
This commit is contained in:
@@ -1271,7 +1271,7 @@ cat $WORKDIR/ip.txt
|
|||||||
echo
|
echo
|
||||||
if [[ -e $WORKDIR/list.txt ]]; then
|
if [[ -e $WORKDIR/list.txt ]]; then
|
||||||
green "已安装sing-box"
|
green "已安装sing-box"
|
||||||
ps aux | grep '[c]onfig' > /dev/null && green "主进程运行正常" || yellow "主进程未启动…………请刷新一下保活网页"
|
ps aux | grep '[r]un -c con' > /dev/null && green "主进程运行正常" || yellow "主进程未启动…………请刷新一下保活网页"
|
||||||
if [ -f "$WORKDIR/boot.log" ] && grep -q "trycloudflare.com" "$WORKDIR/boot.log" 2>/dev/null && ps aux | grep '[t]unnel --u' > /dev/null; then
|
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}')
|
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")
|
checkhttp=$(curl -o /dev/null -s -w "%{http_code}\n" "https://$argosl")
|
||||||
|
|||||||
Reference in New Issue
Block a user