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