mirror of https://github.com/CISOfy/lynis.git
HTTP-6622: Determine Apache version and store in report
This commit is contained in:
parent
6d2770ede6
commit
89fbdd2feb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue