From b4153f22418a5a267d3054bbed892e747243038b Mon Sep 17 00:00:00 2001 From: 233boy <31657650+233boy@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:13:48 +0800 Subject: [PATCH] fix bug --- v2ray.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v2ray.sh b/v2ray.sh index 33430d4..319530e 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="v3.60" +_version="v3.61" cmd="apt-get" @@ -90,6 +90,7 @@ if [[ $? == 0 ]]; then v2ray_ver="$(/usr/bin/v2ray/v2ray -version | head -n 1 | cut -d " " -f2)" else v2ray_ver="$(/usr/bin/v2ray/v2ray version | head -n 1 | cut -d " " -f2)" + v2ray_ver_v5=1 fi . /etc/v2ray/233boy/v2ray/src/init.sh @@ -97,7 +98,7 @@ systemd=true # _test=true # fix VMessAEAD -if [[ ! $(grep 'run -config' /lib/systemd/system/v2ray.service) ]]; then +if [[ ! $(grep 'run -config' /lib/systemd/system/v2ray.service) && $v2ray_ver_v5 ]]; then _load download-v2ray.sh _install_v2ray_service systemctl daemon-reload