Skip to content

Commit 721facb

Browse files
authored
FIX: Setup swap when RAM <= 4GB (#953)
1 parent e42fa97 commit 721facb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discourse-setup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ check_disk_and_memory() {
193193
exit 1
194194
fi
195195

196-
if [ "$avail_mem" -le 2 ]; then
196+
if [ "$avail_mem" -le 4 ]; then
197197
total_swap=`free -g --si | awk ' /Swap:/ {print $2} '`
198198

199199
if [ "$total_swap" -lt 2 ]; then
200-
echo "WARNING: Discourse requires at least 2GB of swap when running with 2GB of RAM"
200+
echo "WARNING: Discourse requires at least 2GB of swap when running with 4GB of RAM"
201201
echo "or less. This system does not appear to have sufficient swap space."
202202
echo
203203
echo "Without sufficient swap space, your site may not work properly, and future"

0 commit comments

Comments
 (0)