Blame tests/p_webalizer/0-install_webalizer.sh

Steve Barnes 09d4e5
#!/bin/bash
Steve Barnes 09d4e5
# Author: Athmane Madjoudj <athmanem@gmail.com>
Steve Barnes 09d4e5
Christoph Galuschka 5e4726
t_Log "Running $0 - attempting to install webalizer"
Christoph Galuschka 5e4726
Pablo Greco a54477
if [ "$centos_ver" -ge 7 ] ; then
650b5f
 t_Log "No webalizer package for CentOS $centos_ver -> SKIP"
650b5f
 t_CheckExitStatus 0
650b5f
 exit 0
650b5f
fi
650b5f
Steve Barnes 09d4e5
t_InstallPackage webalizer 
Athmane Madjoudj 0a3c81
t_InstallPackage httpd
Christoph Galuschka 5e4726
t_ServiceControl httpd stop
Christoph Galuschka 5e4726
ps ax | grep -v grep | grep -q httpd
Christoph Galuschka 5e4726
if [ $? = 0 ]
Christoph Galuschka 5e4726
then
Christoph Galuschka 5e4726
  t_Log "httpd still running - killing"
Christoph Galuschka 5e4726
  killall -9 httpd
Christoph Galuschka 5e4726
fi
Christoph Galuschka 5e4726
sleep 1
Christoph Galuschka 5e4726
t_ServiceControl httpd start
Christoph Galuschka 5e4726