mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-07-26 11:44:22 -04:00
Update install-release.sh
This commit is contained in:
parent
58794ddcb4
commit
de163ba487
@ -373,9 +373,9 @@ main(){
|
|||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
colorEcho ${BLUE} "Installing V2Ray ${NEW_VER} on ${ARCH}"
|
colorEcho ${BLUE} "Installing V2Ray ${NEW_VER} on ${ARCH}"
|
||||||
downloadV2Ray
|
downloadV2Ray || return $?
|
||||||
installSoftware unzip
|
installSoftware unzip || return $?
|
||||||
extract ${ZIPFILE}
|
extract ${ZIPFILE} || return $?
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if pgrep "v2ray" > /dev/null ; then
|
if pgrep "v2ray" > /dev/null ; then
|
||||||
@ -386,7 +386,7 @@ main(){
|
|||||||
installInitScript || return $?
|
installInitScript || return $?
|
||||||
if [[ ${V2RAY_RUNNING} -eq 1 ]];then
|
if [[ ${V2RAY_RUNNING} -eq 1 ]];then
|
||||||
colorEcho ${BLUE} "Restarting V2Ray service."
|
colorEcho ${BLUE} "Restarting V2Ray service."
|
||||||
startV2ray || return $?
|
startV2ray
|
||||||
fi
|
fi
|
||||||
colorEcho ${GREEN} "V2Ray ${NEW_VER} is installed."
|
colorEcho ${GREEN} "V2Ray ${NEW_VER} is installed."
|
||||||
rm -rf /tmp/v2ray
|
rm -rf /tmp/v2ray
|
||||||
|
Loading…
x
Reference in New Issue
Block a user