mirror of https://github.com/CISOfy/lynis.git
[HTTP-6632] fix for proper detection of Apache modules
This commit is contained in:
parent
e22322920f
commit
74c9513fbb
|
@ -271,7 +271,7 @@
|
||||||
for I in ${APACHE_MODULES_LOCS}; do
|
for I in ${APACHE_MODULES_LOCS}; do
|
||||||
DirectoryExists ${I}
|
DirectoryExists ${I}
|
||||||
if [ ${DIRECTORY_FOUND} -eq 1 ]; then
|
if [ ${DIRECTORY_FOUND} -eq 1 ]; then
|
||||||
FIND=`find ${I} -name mod_* -print | sort`
|
FIND=$(find ${I} -name "mod_*" -print | sort)
|
||||||
for J in ${FIND}; do
|
for J in ${FIND}; do
|
||||||
Report "apache_module[]=${J}"
|
Report "apache_module[]=${J}"
|
||||||
LogText "Result: found Apache module ${J}"
|
LogText "Result: found Apache module ${J}"
|
||||||
|
|
Loading…
Reference in New Issue