From c04e6a1a136cd498062cc5c9a3d7bc21a627107c Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Nov 09 2013 09:13:09 +0000 Subject: missed one more occurence of mysqld - fixed --- diff --git a/tests/r_lamp/1_lamp_check.sh b/tests/r_lamp/1_lamp_check.sh index ee86fce..207d475 100755 --- a/tests/r_lamp/1_lamp_check.sh +++ b/tests/r_lamp/1_lamp_check.sh @@ -1,12 +1,20 @@ #!/bin/bash # Author: Steve Barnes (steve@echo.id.au) +# Christoph Galuschka # Filename: 1_lamp_check.sh -# Version: 0.1 -# Last Updated: Saturday, 30 April 2011 2:23 PM AEST +# Version: 0.2 +# Last Updated: Saturday, 09 November 2013 # Description: A simple Bash script to start LAMP daemons (httpd, mysqld), and confirm PHP is working. -readonly DAEMONS=( httpd mysqld ) +# starting with 5.10, we have to differ between mysql55 and mysql + +if [ $centos_ver = 5 ] +then + readonly DAEMONS=( httpd mysql55-mysqld ) +else + readonly DAEMONS=( httpd mysqld ) +fi readonly SERVICE=/sbin/service readonly PHP_BIN=/usr/bin/php