Update reset.sh
This commit is contained in:
parent
a679bac447
commit
a29ab2594b
1 changed files with 4 additions and 5 deletions
|
@ -133,13 +133,12 @@ if [[ "${FS,,}" == "ecryptfs" ]] || [[ "${FS,,}" == "tmpfs" ]]; then
|
|||
DISK_CACHE="writeback"
|
||||
fi
|
||||
|
||||
# Check memory
|
||||
|
||||
[[ "${FS,,}" == "zfs" ]] && RAM_CHECK="N"
|
||||
# Check available memory
|
||||
|
||||
if [[ "$RAM_CHECK" != [Nn]* ]] && (( (RAM_WANTED + RAM_SPARE) > RAM_AVAIL )); then
|
||||
error "Your configured RAM_SIZE of $WANTED_GB GB is too high for the $AVAIL_GB GB of memory available, please set a lower value."
|
||||
exit 17
|
||||
msg="Your configured RAM_SIZE of $WANTED_GB GB is too high for the $AVAIL_GB GB of memory available, please set a lower value."
|
||||
[[ "${FS,,}" != "zfs" ]] && error "$msg" && exit 17
|
||||
info "$msg"
|
||||
fi
|
||||
|
||||
# Helper functions
|
||||
|
|
Loading…
Reference in a new issue