Update vmess.sh
This commit is contained in:
@@ -14,17 +14,17 @@ config_file="/usr/local/etc/xray/config.json"
|
|||||||
install_dependencies() {
|
install_dependencies() {
|
||||||
if ! type jq &>/dev/null; then
|
if ! type jq &>/dev/null; then
|
||||||
echo -e "${green}正在安装 jq...${none}"
|
echo -e "${green}正在安装 jq...${none}"
|
||||||
apt-get update && apt-get install -y jq
|
apt-get update && apt-get install -yq jq
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! type uuidgen &>/dev/null; then
|
if ! type uuidgen &>/dev/null; then
|
||||||
echo -e "${green}正在安装 uuid-runtime...${none}"
|
echo -e "${green}正在安装 uuid-runtime...${none}"
|
||||||
apt-get install -y uuid-runtime
|
apt-get install -yq uuid-runtime
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! type sshpass &>/dev/null; then
|
if ! type sshpass &>/dev/null; then
|
||||||
echo -e "${green}正在安装 sshpass...${none}"
|
echo -e "${green}正在安装 sshpass...${none}"
|
||||||
apt-get install -y sshpass
|
apt-get install -yq sshpass
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! type xray &>/dev/null; then
|
if ! type xray &>/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user