EDIT: Fix up messages about memory and swap
authorJay Pfaffman <pfaffman@relaxpc.com>
Mon, 12 Sep 2016 22:11:19 +0000 (15:11 -0700)
committerJay Pfaffman <pfaffman@relaxpc.com>
Mon, 12 Sep 2016 22:11:19 +0000 (15:11 -0700)
discourse-setup

index 2f3ac7315bcbe64422b5f2768b31970f49901ac3..30c998c923020855e649cbbdb54768d7efbe4154 100755 (executable)
@@ -46,8 +46,8 @@ check_disk_and_memory() {
   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 "
-      echo "than 2GB of RAM. This system does not appear to have sufficient swap space."
+      echo "WARNING: Discourse requires at least 2GB of swap when running with 2GB of RAM"
+      echo "or less. This system does not appear to have sufficient swap space."
       echo
       echo "Without sufficient swap space, your site may not work properly, and future"
       echo "upgrades of Discourse may not complete successfully."