From b8e32158c15c9c9ce3a2fd987c975d97b8199e0d Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 8 Nov 2012 14:20:34 +0100 Subject: [PATCH] sendmail still rules. --- liveboot_testdeploy.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/liveboot_testdeploy.sh b/liveboot_testdeploy.sh index f0a4fa1..a3700d3 100755 --- a/liveboot_testdeploy.sh +++ b/liveboot_testdeploy.sh @@ -4,7 +4,7 @@ # GPL2 licenced set -e -set -x +#set -x export TESTSERVER=pserver2 @@ -47,10 +47,11 @@ cat $TESTSERVER_MGMT_PASSWD_FILE | ipmitool -H $TESTSERVER_MGMT_IP -U ADMIN -a # # check for 10min whether it's up again # -for i in $(seq 1 30) ; do - sleep 20 +for i in $(seq 1 60) ; do + sleep 10 if $(ping -c 1 $TESTSERVER >/dev/null) ; then - figlet "Ok, pings again..." + echo + echo "Ok, pings again..." break fi done @@ -69,13 +70,12 @@ if [ ! -e $MAIL ] ; then echo "$MAIL does not exist, something wrong with liveboot-web?" exit 1 fi -cat $MAIL | mail $MAILTO && echo "Mail to $MAILTO send." -cat $MAIL | mail holger@layer-acht.org +cat $MAIL | /usr/sbin/sendmail $MAILTO && echo "Mail to $MAILTO send." # # finish # figlet Ok echo "$TESTSERVER pings again, so we assume it's up." -echo "Please continue manual testing of $(basedir $SOURCE_DIR)" +echo "Please continue manual testing of $(basename $SOURCE_DIR)" -- 2.39.5