First pass in moving to debian
[discourse_docker.git] / discourse-setup
index 832fe70ee9828d6ed665ecb7a20adc0ec65acbc5..c4f263b9ee808ae06659e9085ceebd28dbde49cb 100755 (executable)
@@ -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