From 190a89be625b10cc3376a271a5021d300a66c6e2 Mon Sep 17 00:00:00 2001 From: 233boy Date: Thu, 5 Apr 2018 15:23:11 +0800 Subject: [PATCH] Bug fix! --- v2ray.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2ray.sh b/v2ray.sh index 02b22e7..2cbe73f 100644 --- a/v2ray.sh +++ b/v2ray.sh @@ -10,7 +10,7 @@ none='\e[0m' # Root [[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 -_version="v1.62" +_version="v1.63" cmd="apt-get" @@ -89,7 +89,7 @@ old_id="23332333-2333-2333-2333-233boy233boy" v2ray_server_config="/etc/v2ray/config.json" v2ray_client_config="/etc/v2ray/233blog_v2ray_config.json" v2ray_pid=$(ps ux | grep "/usr/bin/v2ray/v2ray" | grep -v grep | awk '{print $2}') -caddy_pid=$(ps ux | grep "/usr/local/bin/caddy" | grep -v grep | awk '{print $2}') +caddy_pid=$(pgrep "caddy") if [ $v2ray_pid ]; then v2ray_status="$green正在运行$none"