blob: f12169853005b2c98e6c876c431b572cffce5c62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
LOCALPATH=$1
DEPLOYPATH=`cat config/deploy-path`
RSYNCOPTS='-urpP --delete --links --exclude=.menu.html'
if [ -s config/deploy-pass ]
then
sshpass -f config/deploy-pass rsync $RSYNCOPTS $LOCALPATH/ $DEPLOYPATH
else
rsync $RSYNCOPTS $LOCALPATH/ $DEPLOYPATH
fi
echo 'Remember to push CSV datafiles to GitHub!'
|