aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/install
diff options
context:
space:
mode:
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