From 448fe724abd84e34835daa00eb0244929d2a1633 Mon Sep 17 00:00:00 2001 From: thierry Date: Mon, 25 Jan 2010 09:13:25 +0000 Subject: [PATCH] *do* reboot the boxes, not only display the command --- scripts/reboot-all.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.47.0