summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-08 13:05:08 +0200
committeremkael <emkael@tlen.pl>2017-09-08 13:05:08 +0200
commit200890d01feb2fa26159cf18237f9a4f23286a59 (patch)
tree31122b62d63051726d932af30ac97b1fa084b84f /bin
parent2cddc37cf15be7290140f748914312c94a6a3266 (diff)
Deploy script source directory defined as parameter
Diffstat (limited to 'bin')
-rwxr-xr-xbin/deploy.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/deploy.sh b/bin/deploy.sh
index ec0d4ec..4a5d451 100755
--- a/bin/deploy.sh
+++ b/bin/deploy.sh
@@ -1,8 +1,9 @@
#!/bin/bash
+LOCALPATH=$1
DEPLOYPATH=`cat config/deploy-path`
if [ -s config/deploy-pass ]
then
- sshpass -f config/deploy-pass rsync -urpP --delete http/ $DEPLOYPATH
+ sshpass -f config/deploy-pass rsync -urpP --delete $LOCALPATH/ $DEPLOYPATH
else
- rsync -urpP --delete http/ $DEPLOYPATH
+ rsync -urpP --delete $LOCALPATH/ $DEPLOYPATH
fi