Created
April 1, 2019 10:17
-
-
Save nsacerdote/8e2fae3e1dd936d6a6d6d906b92b7460 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commands: | |
01_swapmem_step: | |
command: sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 | |
ignoreErrors: true | |
test: test ! -f .swapmem | |
02_swapmem_step: | |
command: sudo /sbin/mkswap /var/swap.1 | |
ignoreErrors: true | |
test: test ! -f .swapmem | |
03_swapmem_step: | |
command: sudo chmod 600 /var/swap.1 | |
ignoreErrors: true | |
test: test ! -f .swapmem | |
04_swapmem_step: | |
command: sudo /sbin/swapon /var/swap.1 | |
ignoreErrors: true | |
test: test ! -f .swapmem | |
05_flag_swapmem: | |
command: touch .swapmem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment