summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhydra1
-rwxr-xr-xshare/hydra/deploy5
2 files changed, 6 insertions, 0 deletions
diff --git a/hydra b/hydra
index 1b80f69..53c4a64 100755
--- a/hydra
+++ b/hydra
@@ -33,6 +33,7 @@ function hydra_load {
dest="$(dirname $(readlink $dest))"
else
base="`dirname $0`"
+ dest="`dirname $dest`"
fi
# Deal with relative or absolute links
diff --git a/share/hydra/deploy b/share/hydra/deploy
index bf3f312..11bd914 100755
--- a/share/hydra/deploy
+++ b/share/hydra/deploy
@@ -24,6 +24,11 @@ for node in $NODES; do
echo "Deploying to $node..."
ssh -o ConnectTimeout=15 $node <<EOF
##### BEGIN REMOTE SCRIPT #####
+ if ! which git; then
+ echo "Installing git..."
+ sudo aptitude install git-core -y || exit 1
+ fi
+
if [ ! -d /usr/local/hydra ]; then
sudo git clone $ORIGIN /usr/local/hydra
( cd /usr/local/hydra ; sudo git reset --hard $COMMIT )