1 recipe shared
Creates a 1G swapfile that will be mounted again each time the instance boots by adding it to /etc/fstab. Based on: https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
if [ -f /swapfile ]; then echo "Swapfile already exists?" exit 1 fi