diff --git a/README.md b/README.md index 5e228bf8..f9c1d79f 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ wget -N --no-check-certificate -O /usr/local/xray-ui-linux-amd64.tar.gz https:// ### VPS直接运行一键脚本 ```bash -wget -N https://raw.githubusercontent.com/qist/xray-ui/main/install.sh && bash install.sh +bash <(curl -Ls https://raw.githubusercontent.com/qist/xray-ui/main/install.sh) ``` #### 编译 diff --git a/install.sh b/install.sh index aacf0a6a..384cfed2 100644 --- a/install.sh +++ b/install.sh @@ -27,6 +27,7 @@ cur_dir=$(pwd) [[ $EUID -ne 0 ]] && echo -e "${red}错误:${plain} 必须使用root用户运行此脚本!\n" && exit 1 # check os + if [[ -f /etc/redhat-release ]]; then release="centos" elif cat /etc/issue | grep -Eqi "debian"; then