From 721facba644f645211571026d6677b015c15e5d6 Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Thu, 17 Apr 2025 15:04:27 -0300 Subject: [PATCH] FIX: Setup swap when RAM <= 4GB (#953) --- discourse-setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discourse-setup b/discourse-setup index 4545deb..5adfe13 100755 --- a/discourse-setup +++ b/discourse-setup @@ -193,11 +193,11 @@ check_disk_and_memory() { exit 1 fi - if [ "$avail_mem" -le 2 ]; then + if [ "$avail_mem" -le 4 ]; then total_swap=`free -g --si | awk ' /Swap:/ {print $2} '` if [ "$total_swap" -lt 2 ]; then - echo "WARNING: Discourse requires at least 2GB of swap when running with 2GB of RAM" + echo "WARNING: Discourse requires at least 2GB of swap when running with 4GB of RAM" echo "or less. This system does not appear to have sufficient swap space." echo echo "Without sufficient swap space, your site may not work properly, and future"