From efd8ae0f825d85f5a190407be6bba98781c8b266 Mon Sep 17 00:00:00 2001 From: Matt Palmer Date: Thu, 17 Sep 2015 10:03:13 +1000 Subject: [PATCH] Don't wig out when on a 1GB instance with swap --- launcher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher b/launcher index 8708d5e..e1a758d 100755 --- a/launcher +++ b/launcher @@ -166,9 +166,9 @@ prereqs() { echo echo "See https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md#create-new-cloud-server" elif [ "$avail_mem" -lt 1800 ]; then - resources="insufficient" total_swap="$(LANG=C free -m | grep ^Swap: | awk '{print $2}')" if [ "$total_swap" -lt 1000 ]; then + resources="insufficient" echo "WARNING: You must have at least 1GB of swap when running with less" echo "than 2GB of RAM." echo -- 2.25.1