Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions discourse-setup
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading