From ec6e5323d63a16039663ffebd20d83a314d1b0f7 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 8 Nov 2012 21:33:05 +0100 Subject: [PATCH] again, mildy improve output --- liveboot_testdeploy.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/liveboot_testdeploy.sh b/liveboot_testdeploy.sh index d54b27c..d286003 100755 --- a/liveboot_testdeploy.sh +++ b/liveboot_testdeploy.sh @@ -67,6 +67,7 @@ if $(ping -c 1 $TESTSERVER >/dev/null) ; then echo "$TESTSERVER responds to pings, even though it was reset 3secs ago, this should not happen, please investigate manually." exit 1 fi +echo # # check for 10min whether it's booting up again @@ -76,8 +77,7 @@ for i in $(seq 1 60) ; do sleep 10 echo -n "$(date +%H:%M:%S): " if $(ping -c 1 $TESTSERVER >/dev/null) ; then - echo - echo "$(date +%H:%M:%S): ICMP echo reply from $TESTSERVER, so let's assume it's booting now." + echo "ICMP echo reply from $TESTSERVER, so let's assume it's booting now." break fi echo "no ICMP echo reply received." @@ -87,6 +87,7 @@ if ! $(ping -c 1 $TESTSERVER >/dev/null) ; then echo "$TESTSERVER still down, please investigate." exit 1 fi +echo # # check for 15min whether ssh comes back @@ -101,7 +102,7 @@ for i in $(seq 1 90) ; do echo "ok, sshd is running at $(date +%H:%M:%S)" break else - echo "but sshd is not running at date $(date +%H:%M:%S)" + echo "but sshd is not running at $(date +%H:%M:%S)" fi fi done @@ -110,6 +111,7 @@ if ! $(nc -z $TESTSERVER 22 ) ; then echo "$TESTSERVER still not running sshd, please investigate." exit 1 fi +echo # # send announce mail @@ -120,7 +122,7 @@ if [ ! -e $MAIL ] ; then echo "$MAIL does not exist, something wrong with liveboot-web?" exit 1 fi -head -42 $MAIL +head -33 $MAIL cat $MAIL | /usr/sbin/sendmail $MAILTO echo echo "Ok, mail to $MAILTO send." -- 2.39.5