build.sh 248 B

12345678910
  1. #!/bin/bash
  2. THIS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  3. pushd "${THIS_SCRIPT_DIR}"
  4. /usr/local/bin/hugo
  5. sudo mkdir -p /var/www/gnu.io
  6. sudo cp -r public/* /var/www/gnu.io/
  7. sudo chown -R www-data:www-data /var/www/gnu.io
  8. popd