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.
QA/tests/p_tomcat/0-install_tomcat.sh

20 lines
538 B

#!/bin/bash
# Author: Athmane Madjoudj <athmanem@gmail.com>
if [ "$centos_ver" -ge "8" ] ; then
t_Log "Tomcat is not available in CentOS$centos_ver. SKIP"
exit 0
fi
yum -y remove java\*
if [ "$centos_ver" = "7" ] ;then
tomcat_packages="tomcat tomcat-admin-webapps tomcat-webapps"
elif [ "$centos_ver" = "6" ]; then
tomcat_packages="tomcat6 tomcat6-admin-webapps tomcat6-webapps"
else
tomcat_packages="tomcat5 tomcat5-admin-webapps tomcat5-webapps"
fi
t_Log "$0 - installing Tomcat packages"
t_InstallPackage ${tomcat_packages}