diff options
author | mboelen <michael@cisofy.com> | 2016-03-12 22:45:37 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2016-03-12 22:45:37 +0300 |
commit | 89fbdd2febf1703b5d2f2cdaf9dcd70b942517c7 (patch) | |
tree | 535b7836ec357c7be6cddce3882817ecf705a0b0 /include/tests_webservers | |
parent | 6d2770ede6823d2a94d369947f85f3171fa104e8 (diff) |
HTTP-6622: Determine Apache version and store in report
Diffstat (limited to 'include/tests_webservers')
-rw-r--r-- | include/tests_webservers | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tests_webservers b/include/tests_webservers index 8e483ff3..e7252e30 100644 --- a/include/tests_webservers +++ b/include/tests_webservers @@ -63,6 +63,9 @@ Display --indent 2 --text "- Checking Apache (binary ${HTTPDBINARY})" --result "FOUND" --color GREEN LogText "Result: ${HTTPDBINARY} seems to be Apache HTTP daemon" APACHE_INSTALLED=1 + APACHE_VERSION=`${HTTPDBINARY -v 2> /dev/null | grep "^Server version:" | awk '{ print $3 }' | awk -F/ '{ print $2 }'` + LogText "Apache version: ${APACHE_VERSION}" + Report "apache_version=${APACHE_VERSION}" fi fi fi |