TEW-0x00/deploy
surtur 106df3879c
Some checks failed
continuous-integration/drone/push Build is failing
updated deploy script with awesome future-proofness
2020-03-25 23:04:20 +01:00

18 lines
312 B
Bash

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