Update InstallNET.sh

This commit is contained in:
Molly Lau 2023-10-05 06:13:31 +09:00 committed by GitHub
parent cae8ed4d01
commit 032aea6da3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1033,7 +1033,7 @@ function checkMem() {
# They never optimize or improve it, just tell users they need to pay more to expand their hardware performance and adjust to the endless demand of them. it's not a correct decision.
[[ "$setMemCheck" == '1' ]] && {
[[ "$1" == 'fedora' || "$1" == 'rockylinux' || "$1" == 'almalinux' || "$1" == 'centos' ]] && {
[[ "$TotalMem" -le "492" ]] && {
[[ "$TotalMem" -le "462" ]] && {
echo -ne "\n[${red}Error${plain}] Minimum system memory requirement is 512 MB!\n"
exit 1
}
@ -1069,7 +1069,7 @@ function checkMem() {
}
[[ "$1" == 'alpinelinux' || "$3" == 'Ubuntu' ]] && {
if [[ "$3" == 'Ubuntu' ]]; then
[[ "$TotalMem" -le "492" ]] && {
[[ "$TotalMem" -le "462" ]] && {
echo -ne "\n[${red}Error${plain}] Minimum system memory requirement is 512 MB!\n"
exit 1
}