From: Matt Palmer Date: Thu, 17 Sep 2015 00:03:13 +0000 (+1000) Subject: Don't wig out when on a 1GB instance with swap X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=efd8ae0f825d85f5a190407be6bba98781c8b266;p=discourse_docker.git Don't wig out when on a 1GB instance with swap --- 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