From 200890d01feb2fa26159cf18237f9a4f23286a59 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 8 Sep 2017 13:05:08 +0200 Subject: Deploy script source directory defined as parameter --- bin/deploy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3