From: thierry Date: Mon, 25 Jan 2010 09:13:25 +0000 (+0000) Subject: *do* reboot the boxes, not only display the command X-Git-Tag: foo~213 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=448fe724abd84e34835daa00eb0244929d2a1633;p=infrastructure.git *do* reboot the boxes, not only display the command --- diff --git a/scripts/reboot-all.sh b/scripts/reboot-all.sh index 276b801..c0e70b8 100755 --- a/scripts/reboot-all.sh +++ b/scripts/reboot-all.sh @@ -60,9 +60,10 @@ function host_detail () { for box in $BOXES; do msg=$(host ${box}.onelab.eu | grep alias) echo "==================== rebooting ${box}.onelab.eu ($msg)" + command="ssh root@${box}.onelab.eu shutdown -r now" if [ -n "$DRY_RUN" ] ; then - echo DRYRUN: echo ssh root@${box}.onelab.eu shutdown -r now + echo DRYRUN: $command else - echo ssh root@${box}.onelab.eu shutdown -r now + $command fi done