aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-11-14 14:07:21 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-11-14 14:07:21 -0200
commitfefbd3d64fdc02a4e4dc55bf90b9e9f91a397804 (patch)
tree701d10678bc6f9d7d92f0c4eee311440fe0158a3
parent74ac0bf20e86178b8f4158dd00b9da68039251f0 (diff)
downloadhydra-fefbd3d64fdc02a4e4dc55bf90b9e9f91a397804.tar.gz
hydra-fefbd3d64fdc02a4e4dc55bf90b9e9f91a397804.tar.bz2
Changing argument meaning for deploy
-rwxr-xr-xshare/hydra/deploy9
1 files changed, 6 insertions, 3 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy
index 692e8fd..2454bc6 100755
--- a/share/hydra/deploy
+++ b/share/hydra/deploy
@@ -8,11 +8,13 @@ source $APP_BASE/lib/hydra/functions || exit 1
hydra_config_load
# Command line arguments
-ORIGIN="$1"
+NODES="$*"
COMMIT="347cca10fef9263bf1dd75b34123ec839de7166b"
# Build node list
-NODES="`hydra $HYDRA nodes`"
+if [ -z "$NODES" ]; then
+ NODES="`hydra $HYDRA nodes`"
+fi
# Validation
if [ -z "$ORIGIN" ]; then
@@ -26,7 +28,8 @@ for node in $NODES; do
##### BEGIN REMOTE SCRIPT #####
if ! which git &> /dev/null; then
echo "Installing git..."
- sudo aptitude install git-core -y || exit 1
+ sudo aptitude update
+ sudo aptitude install git-core -y
fi
if [ ! -d /usr/local/hydra ]; then