Blob Blame History Raw
#!/bin/bash
# Author: Athmane Madjoudj <athmanem@gmail.com>

if [ "$centos_ver" -eq "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}