bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_tomcat/0-install_tomcat.sh

Athmane Madjoudj ebf159
#!/bin/bash
Athmane Madjoudj ebf159
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj ebf159
3125c7
yum -y remove java\*
3125c7
a160cc
if [ "$centos_ver" = "7" ] ;then
a160cc
 tomcat_packages="tomcat tomcat-admin-webapps tomcat-webapps"
a160cc
elif [ "$centos_ver" = "6" ]; then
a160cc
 tomcat_packages="tomcat6 tomcat6-admin-webapps tomcat6-webapps"
Athmane Madjoudj 0a3c81
else
a160cc
 tomcat_packages="tomcat5 tomcat5-admin-webapps tomcat5-webapps"
Athmane Madjoudj 0a3c81
fi
a160cc
a160cc
t_Log "$0 - installing Tomcat packages"
a160cc
t_InstallPackage  ${tomcat_packages}