mirror of https://github.com/v2ray/v2ray-core
fix #1141
parent
3620ebfc11
commit
e7d3b282ae
|
@ -137,7 +137,7 @@ installSoftware(){
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# return 1: not apt or yum
|
# return 1: not apt, yum, or zypper
|
||||||
getPMT(){
|
getPMT(){
|
||||||
if [[ -n `command -v apt-get` ]];then
|
if [[ -n `command -v apt-get` ]];then
|
||||||
CMD_INSTALL="apt-get -y -qq install"
|
CMD_INSTALL="apt-get -y -qq install"
|
||||||
|
@ -145,6 +145,9 @@ getPMT(){
|
||||||
elif [[ -n `command -v yum` ]]; then
|
elif [[ -n `command -v yum` ]]; then
|
||||||
CMD_INSTALL="yum -y -q install"
|
CMD_INSTALL="yum -y -q install"
|
||||||
CMD_UPDATE="yum -q makecache"
|
CMD_UPDATE="yum -q makecache"
|
||||||
|
elif [ -n `command -v zypper` ];then
|
||||||
|
CMD_INSTALL="zypper -y install"
|
||||||
|
CMD_UPDATE="zypper ref"
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue