projects
/
discourse_docker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spacing
[discourse_docker.git]
/
discourse-setup
diff --git
a/discourse-setup
b/discourse-setup
index 832fe70ee9828d6ed665ecb7a20adc0ec65acbc5..c4f263b9ee808ae06659e9085ceebd28dbde49cb 100755
(executable)
--- a/
discourse-setup
+++ b/
discourse-setup
@@
-144,7
+144,7
@@
check_disk_and_memory() {
swapon /swapfile
echo "/swapfile swap swap auto 0 0" | tee -a /etc/fstab
sysctl -w vm.swappiness=10
swapon /swapfile
echo "/swapfile swap swap auto 0 0" | tee -a /etc/fstab
sysctl -w vm.swappiness=10
- echo
vm.swappiness = 10 | tee -a /etc/sysctl
.conf
+ echo
'vm.swappiness = 10' > /etc/sysctl.d/30-discourse-swap
.conf
total_swap=`free -g --si | awk ' /Swap:/ {print $2} '`
if [ "$total_swap" -lt 2 ]; then
total_swap=`free -g --si | awk ' /Swap:/ {print $2} '`
if [ "$total_swap" -lt 2 ]; then