diff options
Diffstat (limited to 'share/hydra/mass')
-rwxr-xr-x | share/hydra/mass | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/share/hydra/mass b/share/hydra/mass index 410e36d..06447c2 100755 --- a/share/hydra/mass +++ b/share/hydra/mass @@ -4,6 +4,7 @@ # # Issue commands with pssh +# See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549117 function mass_pssh { hydra_set_tmpfile nodes hydra $HYDRA nodes > $TMPWORK @@ -14,15 +15,14 @@ function mass_pssh { # Issue commands with a for loop function mass_loop { for node in $NODES; do + echo "Issuing $COMMAND on multiple nodes..." echo "Connecting to $node..." ssh -o ConnectTimeout=15 $node $COMMAND done } -# Load functions +# Load source $APP_BASE/lib/hydra/functions || exit 1 - -# Load config hydra_config_load # Command line arguments @@ -34,6 +34,9 @@ if [ "$BASENAME" == "mass-update" ]; then COMMAND="sudo aptitude update" elif [ "$BASENAME" == "mass-update" ]; then COMMAND="sudo aptitude safe-upgrade" +elif [ "$BASENAME" == "mass-web" ]; then + echo "Currently not implemented." + exit 1 fi # Build node list |