mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
Ensure that only one value is provided
This commit is contained in:
parent
761314df23
commit
70e20d514c
@ -778,6 +778,8 @@
|
||||
NGINX_ACCESS_LOG_DISABLED=1
|
||||
else
|
||||
if [ ! "${VALUE}" = "" ]; then
|
||||
# If multiple values follow, select first one
|
||||
VALUE=`echo ${VALUE} | awk '{ print $1 }'`
|
||||
if [ ! -f ${VALUE} ]; then
|
||||
logtext "Result: could not find referenced log file ${VALUE} in nginx configuration"
|
||||
NGINX_ACCESS_LOG_MISSING=1
|
||||
|
Loading…
x
Reference in New Issue
Block a user