From 795cffb0338c7bc3127fa93ad61a15eb9814bed2 Mon Sep 17 00:00:00 2001 From: wulabing Date: Sat, 10 Jul 2021 14:27:52 +0800 Subject: [PATCH] Xray-0.1.9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [fix] 修复Debian系统可能出现的nginx源问题 --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 85a22bb..e982d3c 100644 --- a/install.sh +++ b/install.sh @@ -27,7 +27,7 @@ OK="${Green}[OK]${Font}" ERROR="${Red}[ERROR]${Font}" # 变量 -shell_version="0.1.8" +shell_version="0.1.9" github_branch="nginx_forward" xray_conf_dir="/usr/local/etc/xray" website_dir="/www/xray_web/" @@ -110,7 +110,7 @@ function system_check() { $INS lsb-release gnupg2 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 elif [[ "${ID}" == "ubuntu" && $(echo "${VERSION_ID}" | cut -d '.' -f1) -ge 18 ]]; then @@ -126,7 +126,7 @@ function system_check() { $INS lsb-release gnupg2 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 else print_error "当前系统为 ${ID} ${VERSION_ID} 不在支持的系统列表内"