surtur
716a54748d
All checks were successful
continuous-integration/drone/push Build is passing
* added the media path so that it actually get's synced
17 lines
302 B
Bash
17 lines
302 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 media ./public
|
|
|
|
if [ $USER = $USR ]; then
|
|
rsync -av --delete public/ ~/${PUBDIR}
|
|
else
|
|
rsync -avz --delete public/ ${USR}@${HOST}:~/${PUBDIR}
|
|
fi
|
|
|
|
exit 0 |