TEW-0x00/deploy
surtur d98ea5defc
All checks were successful
continuous-integration/drone/push Build is passing
serving clipboard.js + moved scripts to ./scripts
* due to CSP issue clipboard functionality was not working correctly,
  this temporarily fixes that
* updated script paths accordingly
2020-03-26 08:15:55 +01:00

17 lines
301 B
Bash

#!/bin/bash
USR=dotyaoverlord
HOST=dotya.ml
PUBDIR=tew_0x00public/
rm -rfv ./public
mkdir -pv public
rsync -av index.html scripts pages css media ./public
if [ $USER = $USR ]; then
rsync -av --delete public/ ~/${PUBDIR}
else
rsync -avz --delete public/ ${USR}@${HOST}:~/${PUBDIR}
fi
exit 0