Skip to content

Commit

Permalink
Bug fix!
Browse files Browse the repository at this point in the history
  • Loading branch information
233boy committed Apr 5, 2018
1 parent 6222e9d commit 190a89b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2ray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 190a89b

Please sign in to comment.