diff options
-rwxr-xr-x | share/hydra/deploy | 9 |
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 |