bstinson / centos / t_functional

Forked from centos/t_functional 3 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
Athmane Madjoudj 0a3c81
if (t_GetPkgRel basesystem | grep -q el6)
Athmane Madjoudj 0a3c81
then
Athmane Madjoudj 0a3c81
   t_Log "$0 - installing Tomcat 6"
Athmane Madjoudj 0a3c81
   t_InstallPackage  tomcat6 tomcat6-admin-webapps
Athmane Madjoudj 0a3c81
   service tomcat6 start
Athmane Madjoudj 0a3c81
else
Athmane Madjoudj 0a3c81
   t_Log "$0 - installing Tomcat 5"
Athmane Madjoudj 0a3c81
   t_InstallPackage  tomcat5 tomcat5-admin-webapps tomcat5-webapps
Athmane Madjoudj 0a3c81
   service tomcat5 start
Athmane Madjoudj 0a3c81
fi