projects
/
discourse_docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3973fd
)
Don't wig out when on a 1GB instance with swap
author
Matt Palmer
<mpalmer@hezmatt.org>
Thu, 17 Sep 2015 00:03:13 +0000
(10:03 +1000)
committer
Matt Palmer
<mpalmer@hezmatt.org>
Thu, 17 Sep 2015 00:07:03 +0000
(10:07 +1000)
launcher
patch
|
blob
|
blame
|
history
diff --git
a/launcher
b/launcher
index 8708d5ea5bb9efd1928e116a7b3e3dc1b053e19d..e1a758d656b77ef1a1174e99a209fdc80fc5e017 100755
(executable)
--- a/
launcher
+++ b/
launcher
@@
-166,9
+166,9
@@
prereqs() {
echo
echo "See https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md#create-new-cloud-server"
elif [ "$avail_mem" -lt 1800 ]; then
- resources="insufficient"
total_swap="$(LANG=C free -m | grep ^Swap: | awk '{print $2}')"
if [ "$total_swap" -lt 1000 ]; then
+ resources="insufficient"
echo "WARNING: You must have at least 1GB of swap when running with less"
echo "than 2GB of RAM."
echo