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
f49232
if [ "$centos_ver" -ge "8" ] ; then
Pablo Greco 3855e3
  t_Log "Tomcat is not available in CentOS$centos_ver. SKIP"
Pablo Greco 3855e3
  exit 0
Pablo Greco 3855e3
fi
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}