Blame tests/p_httpd/0-install_httpd.sh

Karanbir Singh 0b5bb2
#!/bin/bash
Karanbir Singh 0b5bb2
# Author: Athmane Madjoudj <athmanem@gmail.com>
Christoph Galuschka cd64d7
#	  Christoph Galuschka <tigalch@tigalch.org>
Karanbir Singh 0b5bb2
7a357b
php_mysql="php-mysql"
7a357b
if [ $centos_ver -ge 7 ]
7a357b
then
7a357b
  php_mysql="php-mysqlnd"
7a357b
fi
7a357b
Athmane Madjoudj 26170b
# Install tests deps
7a357b
t_Log "Running $0 - httpd: installing curl, http, php and $php_mysql"
Karanbir Singh 106bcf
Christoph Galuschka cd64d7
#t_InstallPackage curl
Athmane Madjoudj 26170b
Karanbir Singh 0b5bb2
# HTTPD / PHP 
7a357b
t_InstallPackage curl httpd mod_ssl php $php_mysql
Christoph Galuschka a8bfc7
t_ServiceControl httpd stop
Christoph Galuschka a8bfc7
sleep 3
Christoph Galuschka a8bfc7
killall httpd
Christoph Galuschka a8bfc7
sleep 3
Christoph Galuschka a8bfc7
t_ServiceControl httpd start
Christoph Galuschka a8bfc7