mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-02-01 02:29:01 +08:00
Update check_kernal.sh
This commit is contained in:
parent
9936a8e82c
commit
28dc9f5307
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,7 @@ check_config(){
|
|||
cpu_cores=$(grep -c ^processor /proc/cpuinfo)
|
||||
if [ "$cpu_cores" -lt 2 ]; then
|
||||
_red "本机配置不满足最低要求:至少2核CPU"
|
||||
_red "本机配置无法安装PVE"
|
||||
return
|
||||
fi
|
||||
|
||||
|
@ -66,6 +67,7 @@ check_config(){
|
|||
total_mem=$(free -m | awk '/^Mem:/{print $2}')
|
||||
if [ "$total_mem" -lt 2048 ]; then
|
||||
_red "本机配置不满足最低要求:至少2G内存"
|
||||
_red "本机配置无法安装PVE"
|
||||
return
|
||||
fi
|
||||
|
||||
|
@ -74,6 +76,7 @@ check_config(){
|
|||
total_disk_num=$(echo $total_disk | sed 's/G//')
|
||||
if [ "$total_disk_num" -lt 20 ]; then
|
||||
_red "本机配置不满足最低要求:至少20G硬盘"
|
||||
_red "本机配置无法安装PVE"
|
||||
return
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue