1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00

Update install-release.sh

This commit is contained in:
sunshineplan 2018-04-12 15:46:52 +08:00 committed by GitHub
parent 58794ddcb4
commit de163ba487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,9 +373,9 @@ main(){
exit
else
colorEcho ${BLUE} "Installing V2Ray ${NEW_VER} on ${ARCH}"
downloadV2Ray
installSoftware unzip
extract ${ZIPFILE}
downloadV2Ray || return $?
installSoftware unzip || return $?
extract ${ZIPFILE} || return $?
fi
fi
if pgrep "v2ray" > /dev/null ; then
@ -386,7 +386,7 @@ main(){
installInitScript || return $?
if [[ ${V2RAY_RUNNING} -eq 1 ]];then
colorEcho ${BLUE} "Restarting V2Ray service."
startV2ray || return $?
startV2ray
fi
colorEcho ${GREEN} "V2Ray ${NEW_VER} is installed."
rm -rf /tmp/v2ray