2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 17:17:13 +08:00

feat: 更新版本限制

This commit is contained in:
耗子
2023-12-08 01:23:47 +08:00
parent bc2166ee66
commit 3d3dcbef8d
3 changed files with 9 additions and 2 deletions

View File

@@ -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