From 73cecfb6f91c9dc64867da0ca23d576a99f07426 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Thu, 31 Aug 2023 07:21:07 +0000 Subject: [PATCH] Fix V2Ray update --- debian9-x86_64.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian9-x86_64.sh b/debian9-x86_64.sh index 84a2421..a0c9553 100755 --- a/debian9-x86_64.sh +++ b/debian9-x86_64.sh @@ -915,7 +915,8 @@ if [ "$V2RAY" = "yes" ]; then apt-get -o Dpkg::Options::="--force-confold" -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-overwrite" -y install v2ray=${V2RAY_VERSION} fi if [ -f /etc/v2ray/v2ray-server.json ]; then - V2RAY_UUID=$(grep -Po '"'"id"'"\s*:\s*"\K([^"]*)' v2ray-server.json | head -n 1 | tr -d "\n") + V2RAY_UUID2=$(grep -Po '"'"id"'"\s*:\s*"\K([^"]*)' /etc/v2ray/v2ray-server.json | head -n 1 | tr -d "\n") + [ -n "$V2RAY_UUID2" ] && V2RAY_UUID="$V2RAY_UUID2" fi #if [ ! -f /etc/v2ray/v2ray-server.json ]; then wget -O /etc/v2ray/v2ray-server.json ${VPSURL}${VPSPATH}/v2ray-server.json