summaryrefslogtreecommitdiff
path: root/bin/deploy.sh
blob: ec0d4eced0926ea6f1a46957a2c5d0d9e7cd0239 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
DEPLOYPATH=`cat config/deploy-path`
if [ -s config/deploy-pass ]
then
    sshpass -f config/deploy-pass rsync -urpP --delete http/ $DEPLOYPATH
else
    rsync -urpP --delete http/ $DEPLOYPATH
fi