Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

希望可以去掉debian版本检测 #519

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ elif cat /etc/issue | grep -Eqi "ubuntu"; then
release="ubuntu"
elif cat /etc/issue | grep -Eqi "centos|red hat|redhat"; then
release="centos"
elif cat /proc/version | grep -Eqi "debian"; then
elif cat /proc/version | grep -Eqi "debian"; then
release="debian"
elif cat /proc/version | grep -Eqi "ubuntu"; then
release="ubuntu"
Expand Down Expand Up @@ -65,10 +65,10 @@ elif [[ x"${release}" == x"ubuntu" ]]; then
if [[ ${os_version} -lt 16 ]]; then
echo -e "${red}请使用 Ubuntu 16 或更高版本的系统!${plain}\n" && exit 1
fi
elif [[ x"${release}" == x"debian" ]]; then
if [[ ${os_version} -lt 8 ]]; then
echo -e "${red}请使用 Debian 8 或更高版本的系统!${plain}\n" && exit 1
fi
#elif [[ x"${release}" == x"debian" ]]; then
# if [[ ${os_version} -lt 8 ]]; then
# echo -e "${red}请使用 Debian 8 或更高版本的系统!${plain}\n" && exit 1 #屏蔽检测debian需要正式版本,使其可以使用于testing版本,后期使用systemctl restart x-ui语法进行控制
# fi
fi

install_base() {
Expand Down
8 changes: 4 additions & 4 deletions x-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ elif [[ x"${release}" == x"ubuntu" ]]; then
if [[ ${os_version} -lt 16 ]]; then
LOGE "请使用 Ubuntu 16 或更高版本的系统!\n" && exit 1
fi
elif [[ x"${release}" == x"debian" ]]; then
if [[ ${os_version} -lt 8 ]]; then
LOGE "请使用 Debian 8 或更高版本的系统!\n" && exit 1
fi
#elif [[ x"${release}" == x"debian" ]]; then
# if [[ ${os_version} -lt 8 ]]; then
# LOGE "请使用 Debian 8 或更高版本的系统!\n" && exit 1 #屏蔽Debian版本检测,使其可以用于testing版本
# fi
fi

confirm() {
Expand Down