FIX: make swap when mem is <= (not <) 2GB
authorJay Pfaffman <pfaffman@relaxpc.com>
Mon, 12 Sep 2016 22:07:34 +0000 (15:07 -0700)
committerJay Pfaffman <pfaffman@relaxpc.com>
Mon, 12 Sep 2016 22:07:34 +0000 (15:07 -0700)
discourse-setup

index 169c39c84a55a12981b0f07f39b6b6c62426a530..2f3ac7315bcbe64422b5f2768b31970f49901ac3 100755 (executable)
@@ -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 "