correction path

pull/1/head
Dct Mei 2020-03-16 14:17:07 +08:00
parent e415a12bb1
commit adb98974f0
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
1 changed files with 4 additions and 4 deletions

View File

@ -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