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:
e9db29d
)
fallocate swapfile instead of dd
author
Andrew Schleifer
<me@andrewschleifer.name>
Wed, 26 Jun 2019 06:24:46 +0000
(14:24 +0800)
committer
Rafael dos Santos Silva
<xfalcox@gmail.com>
Thu, 22 Aug 2019 23:05:58 +0000
(20:05 -0300)
discourse-setup
patch
|
blob
|
blame
|
history
diff --git
a/discourse-setup
b/discourse-setup
index c4f263b9ee808ae06659e9085ceebd28dbde49cb..69e6f58536172bb176bff2b43a47690415c14300 100755
(executable)
--- a/
discourse-setup
+++ b/
discourse-setup
@@
-139,7
+139,7
@@
check_disk_and_memory() {
## derived from https://meta.discourse.org/t/13880
##
install -o root -g root -m 0600 /dev/null /swapfile
- dd if=/dev/zero of=/swapfile bs=1k count=2048k
+ fallocate -l 2G /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile swap swap auto 0 0" | tee -a /etc/fstab