From fefbd3d64fdc02a4e4dc55bf90b9e9f91a397804 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 14 Nov 2010 14:07:21 -0200 Subject: Changing argument meaning for deploy --- share/hydra/deploy | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'share') 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 -- cgit v1.2.3