HTTP-6622: Determine Apache version and store in report

This commit is contained in:
mboelen 2016-03-12 20:45:37 +01:00
parent 6d2770ede6
commit 89fbdd2feb
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@
Display --indent 2 --text "- Checking Apache (binary ${HTTPDBINARY})" --result "FOUND" --color GREEN Display --indent 2 --text "- Checking Apache (binary ${HTTPDBINARY})" --result "FOUND" --color GREEN
LogText "Result: ${HTTPDBINARY} seems to be Apache HTTP daemon" LogText "Result: ${HTTPDBINARY} seems to be Apache HTTP daemon"
APACHE_INSTALLED=1 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 fi
fi fi