aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/install
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-20 19:27:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-20 19:27:31 -0300
commit7f0bf86913cea7929931b6b276e88cc55311d167 (patch)
tree05f06fd718cafa56a1b1fe17b3341266a7c1bfb4 /share/hydra/install
parent91581c1ed778b5dccd472201cc14be2eaca6b1a4 (diff)
downloadhydra-7f0bf86913cea7929931b6b276e88cc55311d167.tar.gz
hydra-7f0bf86913cea7929931b6b276e88cc55311d167.tar.bz2
Switching to simpler rsync installation
Diffstat (limited to 'share/hydra/install')
-rwxr-xr-xshare/hydra/install17
1 files changed, 11 insertions, 6 deletions
diff --git a/share/hydra/install b/share/hydra/install
index 739589b..b16cf02 100755
--- a/share/hydra/install
+++ b/share/hydra/install
@@ -36,6 +36,10 @@ fi
# Deploy
for node in $NODES; do
echo "Installing to $node..."
+
+ # Rsync version
+ rsync -CrltDv --no-perms --exclude=keys --delete --rsync-path "sudo rsync" $APP_BASE/ $node:/usr/local/hydra/
+
$HYDRA_CONNECT $node <<EOF
##### BEGIN REMOTE SCRIPT #####
if ! which git &> /dev/null; then
@@ -44,12 +48,13 @@ for node in $NODES; do
sudo aptitude install git-core -y
fi
- if [ ! -d /usr/local/hydra ]; then
- sudo git clone $ORIGIN /usr/local/hydra
- ( cd /usr/local/hydra ; sudo git reset --hard $COMMIT )
- else
- ( cd /usr/local/hydra ; sudo git pull ; sudo git reset --hard $COMMIT )
- fi
+ # Git version
+ #if [ ! -d /usr/local/hydra ]; then
+ # sudo git clone $ORIGIN /usr/local/hydra
+ # ( cd /usr/local/hydra ; sudo git reset --hard $COMMIT )
+ #else
+ # ( cd /usr/local/hydra ; sudo git pull ; sudo git reset --hard $COMMIT )
+ #fi
# Update symlinks
sudo ln -sf /usr/local/hydra/hydra /usr/local/bin/hydra