From: Jeff Atwood Date: Wed, 3 Jan 2018 08:01:42 +0000 (-0800) Subject: Improve failed to create swap message X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8e7862c4b4d786eb0fac10a5e87e2cce8b660c87;p=discourse_docker.git Improve failed to create swap message --- 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