summaryrefslogtreecommitdiff
path: root/bin/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/deploy.sh')
-rwxr-xr-xbin/deploy.sh8
1 files changed, 8 insertions, 0 deletions
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