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

if (t_GetPkgRel basesystem | grep -q el6)
then
   t_Log "$0 - installing Tomcat 6"
   t_InstallPackage  tomcat6 tomcat6-admin-webapps
   service tomcat6 start
else
   t_Log "$0 - installing Tomcat 5"
   t_InstallPackage  tomcat5 tomcat5-admin-webapps tomcat5-webapps
   service tomcat5 start
fi