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:
ToutyRater 2017-01-06 06:08:48 +00:00 committed by GitHub
parent 3910833fb2
commit 9917363a36

View File

@ -125,7 +125,7 @@ getPMT(){
CMD_INSTALL="apt-get -y -qq install"
CMD_UPDATE="apt-get -qq update"
elif [[ -n `command -v yum` ]]; then
CMD_INSTALL="yum -y -qq install"
CMD_INSTALL="yum -y -q install"
CMD_UPDATE="yum -q makecache"
else
return 1
@ -262,7 +262,7 @@ remove(){
stopV2ray
fi
systemctl disable v2ray.service
rm -rf "/usr/lib/v2ray" "/lib/systemd/system/v2ray.service"
rm -rf "/usr/bin/v2ray" "/lib/systemd/system/v2ray.service"
if [[ $? -ne 0 ]]; then
colorEcho ${RED} "Failed to remove V2Ray."
exit
@ -275,7 +275,7 @@ remove(){
if pgrep "v2ray" > /dev/null ; then
stopV2ray
fi
rm -rf "/usr/lib/v2ray" "/etc/init.d/v2ray"
rm -rf "/usr/bin/v2ray" "/etc/init.d/v2ray"
if [[ $? -ne 0 ]]; then
colorEcho ${RED} "Failed to remove V2Ray."
exit