mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
Update install-release.sh
This commit is contained in:
parent
3910833fb2
commit
9917363a36
@ -125,7 +125,7 @@ getPMT(){
|
|||||||
CMD_INSTALL="apt-get -y -qq install"
|
CMD_INSTALL="apt-get -y -qq install"
|
||||||
CMD_UPDATE="apt-get -qq update"
|
CMD_UPDATE="apt-get -qq update"
|
||||||
elif [[ -n `command -v yum` ]]; then
|
elif [[ -n `command -v yum` ]]; then
|
||||||
CMD_INSTALL="yum -y -qq install"
|
CMD_INSTALL="yum -y -q install"
|
||||||
CMD_UPDATE="yum -q makecache"
|
CMD_UPDATE="yum -q makecache"
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
@ -262,7 +262,7 @@ remove(){
|
|||||||
stopV2ray
|
stopV2ray
|
||||||
fi
|
fi
|
||||||
systemctl disable v2ray.service
|
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
|
if [[ $? -ne 0 ]]; then
|
||||||
colorEcho ${RED} "Failed to remove V2Ray."
|
colorEcho ${RED} "Failed to remove V2Ray."
|
||||||
exit
|
exit
|
||||||
@ -275,7 +275,7 @@ remove(){
|
|||||||
if pgrep "v2ray" > /dev/null ; then
|
if pgrep "v2ray" > /dev/null ; then
|
||||||
stopV2ray
|
stopV2ray
|
||||||
fi
|
fi
|
||||||
rm -rf "/usr/lib/v2ray" "/etc/init.d/v2ray"
|
rm -rf "/usr/bin/v2ray" "/etc/init.d/v2ray"
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
colorEcho ${RED} "Failed to remove V2Ray."
|
colorEcho ${RED} "Failed to remove V2Ray."
|
||||||
exit
|
exit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user