From 87f82295ed1d27f52b0dbd7facf3b9cef7c969d3 Mon Sep 17 00:00:00 2001 From: wulabing Date: Thu, 18 Feb 2021 23:49:04 +0800 Subject: [PATCH] xray-1.0.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [fix] 1.0.4-1.0.5 版本的遗留问题 --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 7bb16ed..2ed55be 100644 --- a/install.sh +++ b/install.sh @@ -23,7 +23,7 @@ OK="${Green}[OK]${Font}" ERROR="${Red}[ERROR]${Font}" # 变量 -shell_version="1.0.5" +shell_version="1.0.6" github_branch="xray" version_cmp="/tmp/version_cmp.tmp" xray_conf_dir="/usr/local/etc/xray" @@ -73,6 +73,8 @@ function system_check() { elif [[ "${ID}" == "debian" && ${VERSION_ID} -ge 9 ]]; then print_ok "当前系统为 Debian ${VERSION_ID} ${VERSION}" INS="apt install -y" + # 清除可能的遗留问题 + rm -f /etc/apt/sources.list.d/nginx.list $INS lsb-release echo "deb http://nginx.org/packages/debian $(lsb_release -cs) nginx" >/etc/apt/sources.list.d/nginx.list @@ -82,6 +84,8 @@ function system_check() { elif [[ "${ID}" == "ubuntu" && $(echo "${VERSION_ID}" | cut -d '.' -f1) -ge 18 ]]; then print_ok "当前系统为 Ubuntu ${VERSION_ID} ${UBUNTU_CODENAME}" INS="apt install -y" + # 清除可能的遗留问题 + rm -f /etc/apt/sources.list.d/nginx.list $INS lsb-release echo "deb http://nginx.org/packages/ubuntu $(lsb_release -cs) nginx" >/etc/apt/sources.list.d/nginx.list