cron.sh 242 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. dir="/var/www/jason.schwarzenberger.co.nz"
  3. cd $dir
  4. git checkout master
  5. git pull
  6. source ./env/bin/activate
  7. python $dir/scripts/gists.py
  8. rm -r $dir/public
  9. /home/linuxbrew/.linuxbrew/bin/hugo
  10. chown jason:jason $dir -R