#! /bin/bash
USER=fdamstra
HOST=k8s4.home.monkeybox.org
DIR=/mnt/kubernetes/volumes/static/monkeybox/

hugo \
  && rsync -avz --delete public/ ${USER}@${HOST}:${DIR} \
  && ssh ${USER}@${HOST} sudo chown -R fdamstra:fdamstra ${DIR} \
  && ssh ${USER}@${HOST} sudo chmod o+r ${DIR}

exit 0

