Update check_kernal.sh

This commit is contained in:
spiritLHLS 2023-04-12 09:31:57 +08:00 committed by GitHub
parent d69718bdee
commit 249b004ac9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,8 @@ check_config(){
# 检查硬盘大小
total_disk=$(df -h / | awk '/\//{print $2}')
if [ "$total_disk" -lt 20 ]; then
total_disk_num=$(echo $total_disk | sed 's/G//')
if [ "$total_disk_num" -lt 20 ]; then
_yellow "服务器不满足最低要求至少20G硬盘"
return
fi