From: Jay Pfaffman Date: Mon, 12 Sep 2016 22:07:34 +0000 (-0700) Subject: FIX: make swap when mem is <= (not <) 2GB X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f7bb85e6f1bbd50bbfc6dcce3c8e29bffe679c4b;p=discourse_docker.git FIX: make swap when mem is <= (not <) 2GB --- 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 "