You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
550 B

#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>
if [ "$centos_ver" -ge "8" ] ; then
exit 0
fi
uname_arch=$(uname -m)
#if [ "$uname_arch" == "i686" ] ; then
#t_Log "Skipping $0 on $uname_arch"
#exit 0
#else
t_Log "Running $0 - Tomcat basic test."
#fi
if [ "$centos_ver" = "7" ] ; then
string_tosearch="you've successfully installed Tomcat. Congratulations!"
else
string_tosearch="you've setup Tomcat successfully. Congratulations!"
fi
curl -s http://localhost:8080/ | grep "${string_tosearch}" >/dev/null 2>&1
t_CheckExitStatus $?