summaryrefslogtreecommitdiff
path: root/share/hydra/install
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydra/install')
-rwxr-xr-xshare/hydra/install13
1 files changed, 9 insertions, 4 deletions
diff --git a/share/hydra/install b/share/hydra/install
index 8b93ae7..00154b7 100755
--- a/share/hydra/install
+++ b/share/hydra/install
@@ -28,8 +28,13 @@ if [ -z "$NODES" ]; then
NODES="`hydra $HYDRA nodes`"
fi
-# Validation
-if [ -z "$ORIGIN" ]; then
+# Get origin
+ORIGIN_CONFIG="`hydra $HYDRA config git`"
+
+# Validate origin
+if [ ! -z "$ORIGIN_CONFIG" ]; then
+ ORIGIN="$ORIGIN_CONFIG/hydra.git"
+else
ORIGIN="git://git.fluxo.info/hydra.git"
fi
@@ -44,8 +49,8 @@ for node in $NODES; do
##### BEGIN REMOTE SCRIPT #####
if ! which git &> /dev/null; then
echo "Installing git..."
- sudo aptitude update
- sudo aptitude install git-core -y
+ sudo apt-get update
+ sudo apt-get install git-core -y
fi
# Git version