From 8e7862c4b4d786eb0fac10a5e87e2cce8b660c87 Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Wed, 3 Jan 2018 00:01:42 -0800 Subject: [PATCH] Improve failed to create swap message --- discourse-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discourse-setup b/discourse-setup index 8999b95..f31231f 100755 --- a/discourse-setup +++ b/discourse-setup @@ -146,7 +146,7 @@ check_disk_and_memory() { total_swap=`free -g --si | awk ' /Swap:/ {print $2} '` if [ "$total_swap" -lt 2 ]; then - echo "Failed to create swap, sorry!" + echo "Failed to create swap: are you root? Are you running on real hardware, or a fully virtualized server?" exit 1 fi -- 2.25.1