publish.sh 388 B

12345678910111213
  1. #!/bin/sh
  2. cd "$(dirname "${0}")" || exit 1
  3. ~/bin/hugo
  4. rsync --bwlimit=80 \
  5. --exclude '*.raw*' \
  6. --exclude 'comments.xml*' \
  7. --exclude 'resources*' \
  8. --exclude '.DS_Store' \
  9. --delete --delete-excluded -avPz public/ s0:/var/www/lighttpd/mro.name/public_html/blog/
  10. ssh s0 curl --output /var/www/lighttpd/mro.name/public_html/blog/assets/eicar.com https://secure.eicar.org/eicar.com