# GPL2 licenced
set -e
-set -x
+#set -x
export
TESTSERVER=pserver2
#
# 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
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)"