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:
b06dc1b
)
Make our swap config compatible with systemd >= 207 (#331)
author
Rafael dos Santos Silva
<xfalcox@gmail.com>
Tue, 27 Nov 2018 07:39:46 +0000
(
05:39
-0200)
committer
Sam
<sam.saffron@gmail.com>
Tue, 27 Nov 2018 07:39:46 +0000
(18:39 +1100)
discourse-setup
patch
|
blob
|
blame
|
history
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
- 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