From f7bb85e6f1bbd50bbfc6dcce3c8e29bffe679c4b Mon Sep 17 00:00:00 2001 From: Jay Pfaffman Date: Mon, 12 Sep 2016 15:07:34 -0700 Subject: [PATCH] FIX: make swap when mem is <= (not <) 2GB --- discourse-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discourse-setup b/discourse-setup index 169c39c..2f3ac73 100755 --- a/discourse-setup +++ b/discourse-setup @@ -43,7 +43,7 @@ check_disk_and_memory() { exit 1 fi - if [ "$avail_mem" -lt 2 ]; then + if [ "$avail_mem" -le 2 ]; then total_swap=`free -g --si | awk ' /Swap:/ {print $2} '` if [ "$total_swap" -lt 2 ]; then echo "WARNING: Discourse requires at least 2GB of swap when running with less " -- 2.25.1