mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-11-12 02:10:33 +08:00
Update InstallNET.sh
This commit is contained in:
parent
cae8ed4d01
commit
032aea6da3
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
# 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' ]] && {
|
[[ "$setMemCheck" == '1' ]] && {
|
||||||
[[ "$1" == 'fedora' || "$1" == 'rockylinux' || "$1" == 'almalinux' || "$1" == 'centos' ]] && {
|
[[ "$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"
|
echo -ne "\n[${red}Error${plain}] Minimum system memory requirement is 512 MB!\n"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
@ -1069,7 +1069,7 @@ function checkMem() {
|
||||||
}
|
}
|
||||||
[[ "$1" == 'alpinelinux' || "$3" == 'Ubuntu' ]] && {
|
[[ "$1" == 'alpinelinux' || "$3" == 'Ubuntu' ]] && {
|
||||||
if [[ "$3" == 'Ubuntu' ]]; then
|
if [[ "$3" == 'Ubuntu' ]]; then
|
||||||
[[ "$TotalMem" -le "492" ]] && {
|
[[ "$TotalMem" -le "462" ]] && {
|
||||||
echo -ne "\n[${red}Error${plain}] Minimum system memory requirement is 512 MB!\n"
|
echo -ne "\n[${red}Error${plain}] Minimum system memory requirement is 512 MB!\n"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue