mirror of https://github.com/wulabing/Xray_onekey
parent
0d28d65718
commit
87f82295ed
|
@ -23,7 +23,7 @@ OK="${Green}[OK]${Font}"
|
||||||
ERROR="${Red}[ERROR]${Font}"
|
ERROR="${Red}[ERROR]${Font}"
|
||||||
|
|
||||||
# 变量
|
# 变量
|
||||||
shell_version="1.0.5"
|
shell_version="1.0.6"
|
||||||
github_branch="xray"
|
github_branch="xray"
|
||||||
version_cmp="/tmp/version_cmp.tmp"
|
version_cmp="/tmp/version_cmp.tmp"
|
||||||
xray_conf_dir="/usr/local/etc/xray"
|
xray_conf_dir="/usr/local/etc/xray"
|
||||||
|
@ -73,6 +73,8 @@ function system_check() {
|
||||||
elif [[ "${ID}" == "debian" && ${VERSION_ID} -ge 9 ]]; then
|
elif [[ "${ID}" == "debian" && ${VERSION_ID} -ge 9 ]]; then
|
||||||
print_ok "当前系统为 Debian ${VERSION_ID} ${VERSION}"
|
print_ok "当前系统为 Debian ${VERSION_ID} ${VERSION}"
|
||||||
INS="apt install -y"
|
INS="apt install -y"
|
||||||
|
# 清除可能的遗留问题
|
||||||
|
rm -f /etc/apt/sources.list.d/nginx.list
|
||||||
$INS lsb-release
|
$INS lsb-release
|
||||||
|
|
||||||
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
|
||||||
|
@ -82,6 +84,8 @@ function system_check() {
|
||||||
elif [[ "${ID}" == "ubuntu" && $(echo "${VERSION_ID}" | cut -d '.' -f1) -ge 18 ]]; then
|
elif [[ "${ID}" == "ubuntu" && $(echo "${VERSION_ID}" | cut -d '.' -f1) -ge 18 ]]; then
|
||||||
print_ok "当前系统为 Ubuntu ${VERSION_ID} ${UBUNTU_CODENAME}"
|
print_ok "当前系统为 Ubuntu ${VERSION_ID} ${UBUNTU_CODENAME}"
|
||||||
INS="apt install -y"
|
INS="apt install -y"
|
||||||
|
# 清除可能的遗留问题
|
||||||
|
rm -f /etc/apt/sources.list.d/nginx.list
|
||||||
$INS lsb-release
|
$INS lsb-release
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue