Merge branch 'modify-aws-swap-generation' of kazu634/itamae into master
This commit is contained in:
commit
32ede88fbb
|
@ -1,12 +1,11 @@
|
||||||
# Make swap file:
|
# Make swap file:
|
||||||
[
|
[
|
||||||
'dd if=/dev/zero of=/swap.img bs=1M count=2048 && chomod 600 /swap.img',
|
'dd if=/dev/zero of=/swap.img bs=1M count=2048 && chmod 600 /swap.img && mkswap /swap.img'
|
||||||
'mkswap /swap.img'
|
|
||||||
].each do |cmd|
|
].each do |cmd|
|
||||||
execute cmd do
|
execute cmd do
|
||||||
user 'root'
|
user 'root'
|
||||||
|
|
||||||
only_if 'test ! -f /swap.img -a `cat /proc/swaps | wc -l` -eq 1'
|
only_if 'test ! -f /swap.img'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue