Update reset.sh

This commit is contained in:
Kroese 2025-03-14 14:40:42 +01:00 committed by GitHub
parent a679bac447
commit a29ab2594b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,13 +133,12 @@ if [[ "${FS,,}" == "ecryptfs" ]] || [[ "${FS,,}" == "tmpfs" ]]; then
DISK_CACHE="writeback" DISK_CACHE="writeback"
fi fi
# Check memory # Check available memory
[[ "${FS,,}" == "zfs" ]] && RAM_CHECK="N"
if [[ "$RAM_CHECK" != [Nn]* ]] && (( (RAM_WANTED + RAM_SPARE) > RAM_AVAIL )); then 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." 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."
exit 17 [[ "${FS,,}" != "zfs" ]] && error "$msg" && exit 17
info "$msg"
fi fi
# Helper functions # Helper functions