#!/bin/sh

if [ -f /swapfile ]; then
  echo "Increasing /swapfile size"
  swapoff /swapfile
  rm /swapfile
  fallocate -l 16G /swapfile
  chmod 600 /swapfile
  mkswap /swapfile
  swapon /swapfile
else
  echo "No /swapfile!"
fi
