From f082f7c25fba7d7064a2bbda0dd9cc1d0babfb35 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 15 Jun 2017 23:46:57 +0200 Subject: `deploy` target in separate executable, more flexible Fixes #3 --- bin/deploy.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/deploy.sh (limited to 'bin') diff --git a/bin/deploy.sh b/bin/deploy.sh new file mode 100755 index 0000000..39812e4 --- /dev/null +++ b/bin/deploy.sh @@ -0,0 +1,8 @@ +#!/bin/bash +DEPLOYPATH=`cat config/deploy-path` +if [ -s config/deploy-pass ] +then + sshpass -p `cat config/deploy-pass` rsync -urpP http/ $DEPLOYPATH +else + rsync -urpP http/ $DEPLOYPATH +fi -- cgit v1.2.3