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:
efa129c
)
FIX: make swap when mem is <= (not <) 2GB
author
Jay Pfaffman
<pfaffman@relaxpc.com>
Mon, 12 Sep 2016 22:07:34 +0000
(15:07 -0700)
committer
Jay Pfaffman
<pfaffman@relaxpc.com>
Mon, 12 Sep 2016 22:07:34 +0000
(15:07 -0700)
discourse-setup
patch
|
blob
|
blame
|
history
diff --git
a/discourse-setup
b/discourse-setup
index 169c39c84a55a12981b0f07f39b6b6c62426a530..2f3ac7315bcbe64422b5f2768b31970f49901ac3 100755
(executable)
--- a/
discourse-setup
+++ b/
discourse-setup
@@
-43,7
+43,7
@@
check_disk_and_memory() {
exit 1
fi
- if [ "$avail_mem" -l
t
2 ]; then
+ if [ "$avail_mem" -l
e
2 ]; 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 less "