mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-03 12:04:31 +02:00
Check if value after access_log option is filled
This commit is contained in:
parent
a12876e472
commit
49414f8b06
@ -775,11 +775,13 @@
|
|||||||
logtext "Result: found logging disabled for one virtual host"
|
logtext "Result: found logging disabled for one virtual host"
|
||||||
NGINX_ACCESS_LOG_DISABLED=1
|
NGINX_ACCESS_LOG_DISABLED=1
|
||||||
else
|
else
|
||||||
|
if [ ! "${VALUE}" = "" ]; then
|
||||||
if [ ! -f ${VALUE} ]; then
|
if [ ! -f ${VALUE} ]; then
|
||||||
logtext "Result: could not find referenced log file ${VALUE} in nginx configuration"
|
logtext "Result: could not find referenced log file ${VALUE} in nginx configuration"
|
||||||
NGINX_ACCESS_LOG_MISSING=1
|
NGINX_ACCESS_LOG_MISSING=1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
# Headers
|
# Headers
|
||||||
add_header)
|
add_header)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user