TEW-0x00/deploy
surtur 20d4b4e753
All checks were successful
continuous-integration/drone/push Build is passing
updated deploy script - finally a sane deployer
2020-03-26 00:06:15 +01:00

17 lines
296 B
Bash

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