mirror of https://github.com/wulabing/Xray_onekey
parent
874f8b296b
commit
795cffb033
|
@ -27,7 +27,7 @@ OK="${Green}[OK]${Font}"
|
||||||
ERROR="${Red}[ERROR]${Font}"
|
ERROR="${Red}[ERROR]${Font}"
|
||||||
|
|
||||||
# 变量
|
# 变量
|
||||||
shell_version="0.1.8"
|
shell_version="0.1.9"
|
||||||
github_branch="nginx_forward"
|
github_branch="nginx_forward"
|
||||||
xray_conf_dir="/usr/local/etc/xray"
|
xray_conf_dir="/usr/local/etc/xray"
|
||||||
website_dir="/www/xray_web/"
|
website_dir="/www/xray_web/"
|
||||||
|
@ -110,7 +110,7 @@ function system_check() {
|
||||||
$INS lsb-release gnupg2
|
$INS lsb-release gnupg2
|
||||||
|
|
||||||
echo "deb http://nginx.org/packages/debian $(lsb_release -cs) nginx" >/etc/apt/sources.list.d/nginx.list
|
echo "deb http://nginx.org/packages/debian $(lsb_release -cs) nginx" >/etc/apt/sources.list.d/nginx.list
|
||||||
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
|
curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add -
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
elif [[ "${ID}" == "ubuntu" && $(echo "${VERSION_ID}" | cut -d '.' -f1) -ge 18 ]]; then
|
elif [[ "${ID}" == "ubuntu" && $(echo "${VERSION_ID}" | cut -d '.' -f1) -ge 18 ]]; then
|
||||||
|
@ -126,7 +126,7 @@ function system_check() {
|
||||||
$INS lsb-release gnupg2
|
$INS lsb-release gnupg2
|
||||||
|
|
||||||
echo "deb http://nginx.org/packages/ubuntu $(lsb_release -cs) nginx" >/etc/apt/sources.list.d/nginx.list
|
echo "deb http://nginx.org/packages/ubuntu $(lsb_release -cs) nginx" >/etc/apt/sources.list.d/nginx.list
|
||||||
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
|
curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add -
|
||||||
apt update
|
apt update
|
||||||
else
|
else
|
||||||
print_error "当前系统为 ${ID} ${VERSION_ID} 不在支持的系统列表内"
|
print_error "当前系统为 ${ID} ${VERSION_ID} 不在支持的系统列表内"
|
||||||
|
|
Loading…
Reference in New Issue