From: Holger Levsen Date: Thu, 8 Nov 2012 13:20:34 +0000 (+0100) Subject: sendmail still rules. X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=b8e32158c15c9c9ce3a2fd987c975d97b8199e0d;p=profitbricks%2Fjenkins-build-scripts.git sendmail still rules. --- 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)"