Merge branch 'modify-aws-swap-generation' of kazu634/itamae into master

This commit is contained in:
Kazuhiro MUSASHI 2019-11-06 00:22:34 +09:00 committed by Gitea
commit 32ede88fbb
1 changed files with 2 additions and 3 deletions

View File

@ -1,12 +1,11 @@
# Make swap file:
[
'dd if=/dev/zero of=/swap.img bs=1M count=2048 && chomod 600 /swap.img',
'mkswap /swap.img'
'dd if=/dev/zero of=/swap.img bs=1M count=2048 && chmod 600 /swap.img && mkswap /swap.img'
].each do |cmd|
execute cmd do
user 'root'
only_if 'test ! -f /swap.img -a `cat /proc/swaps | wc -l` -eq 1'
only_if 'test ! -f /swap.img'
end
end