Improve failed to create swap message
authorJeff Atwood <jatwood@codinghorror.com>
Wed, 3 Jan 2018 08:01:42 +0000 (00:01 -0800)
committerGitHub <noreply@github.com>
Wed, 3 Jan 2018 08:01:42 +0000 (00:01 -0800)
discourse-setup

index 8999b95e4366d8d6ac6bef11afa6ebbd11eb8c8f..f31231f5e6deae1eeec529992b26107cf93b0d23 100755 (executable)
@@ -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