From 3d3dcbef8d263d6bc628f388e8aff96a361d824b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 8 Dec 2023 01:23:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- README_EN.md | 2 +- scripts/install_panel.sh | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ad755ef8..bf048ec1 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ 低配机器建议使用 `Debian`,资源占用较 `RHEL` 系更低。其他机器建议使用 `AlmaLinux` | `RockyLinux`,维护周期更长也更稳定。 -不在下表中的其他系统(OpenCloudOS 8、Anolis 8、CentOS Stream 8/9、Debian 11等),可自行尝试安装,但不保证能够正常运行,且不提供无偿技术支持(理论上不会有大问题)。 +不在下表中的其他 RHEL 9.x 系统,可自行尝试安装,但不保证能够正常运行,且不提供无偿技术支持(理论上不会有大问题)。 CentOS Stream 可使用迁移脚本迁移至支持的系统: [CentOS 8/9 迁移脚本](https://github.com/haozi-team/byecentos) diff --git a/README_EN.md b/README_EN.md index e848eb21..24e11162 100644 --- a/README_EN.md +++ b/README_EN.md @@ -37,7 +37,7 @@ HaoZi Linux Panel only supports the latest version of mainstream systems under t Recommended to use `Debian` for low-configuration machines, as its resource usage is lower than that of the `RHEL` system. For other machines, recommended to use `RockyLinux` | `AlmaLinux`, which has a longer maintenance cycle and is more stable. -For other systems not in the table below (OpenCloudOS 8, Anolis 8, CentOS Stream 8/9, Debian 11, etc.), you can try to install it yourself, but normal operation is not guaranteed, and free technical support is not provided (theoretically there will be no major question). +For other RHEL 9.x systems not in the table, you can try to install it yourself, but normal operation is not guaranteed, and free technical support is not provided (theoretically there will be no major question). CentOS Stream can be migrated to a supported system using the migration script: [CentOS 8/9 Migration Script](https://github.com/haozi-team/byecentos) diff --git a/scripts/install_panel.sh b/scripts/install_panel.sh index 9fd29da0..dbc6650d 100644 --- a/scripts/install_panel.sh +++ b/scripts/install_panel.sh @@ -44,6 +44,13 @@ Prepare_System() { exit 1 fi + kernelVersion=$(uname -r | awk -F '.' '{print $1}') + if [ "${kernelVersion}" != "5" ] && [ "${kernelVersion}" != "6" ]; then + echo -e $HR + echo "错误:该系统内核版本太低,不支持安装耗子Linux面板,请更换Debian12/RHEL9安装。" + exit 1 + fi + is64bit=$(getconf LONG_BIT) if [ "${is64bit}" != '64' ]; then echo -e $HR