From adb98974f01ed549faf47a59e78c809476e01215 Mon Sep 17 00:00:00 2001 From: Dct Mei Date: Mon, 16 Mar 2020 14:17:07 +0800 Subject: [PATCH] correction path --- install-release.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install-release.sh b/install-release.sh index 8493cba..c046a4a 100644 --- a/install-release.sh +++ b/install-release.sh @@ -204,7 +204,7 @@ getVersion(){ fi return 4 else - VER=`/usr/bin/v2ray/v2ray -version 2>/dev/null` + VER=`/usr/local/bin/v2ray -version 2>/dev/null` RETVAL="$?" CUR_VER=`echo $VER | head -n 1 | cut -d " " -f2` if [[ ${CUR_VER} != v* ]]; then @@ -347,7 +347,7 @@ remove(){ stopV2ray fi systemctl disable v2ray.service - rm -rf "/usr/bin/v2ray" "/etc/systemd/system/v2ray.service" + rm -rf /usr/local/bin/{v2ray,v2ctl} /usr/local/lib/v2ray /etc/systemd/system/v2ray.service if [[ $? -ne 0 ]]; then colorEcho ${RED} "Failed to remove V2Ray." return 0 @@ -361,7 +361,7 @@ remove(){ stopV2ray fi systemctl disable v2ray.service - rm -rf "/usr/bin/v2ray" "/lib/systemd/system/v2ray.service" + rm -rf /usr/local/bin/{v2ray,v2ctl} /usr/local/lib/v2ray /lib/systemd/system/v2ray.service if [[ $? -ne 0 ]]; then colorEcho ${RED} "Failed to remove V2Ray." return 0 @@ -374,7 +374,7 @@ remove(){ if pgrep "v2ray" > /dev/null ; then stopV2ray fi - rm -rf "/usr/bin/v2ray" "/etc/init.d/v2ray" + rm -rf /usr/local/bin/{v2ray,v2ctl} /usr/local/lib/v2ray /etc/init.d/v2ray if [[ $? -ne 0 ]]; then colorEcho ${RED} "Failed to remove V2Ray." return 0