You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_webalizer/0-install_webalizer.sh

24 lines
478 B

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