mirror of https://github.com/CISOfy/lynis.git
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
|
NGINX_ACCESS_LOG_DISABLED=1
|
||||||
else
|
else
|
||||||
if [ ! "${VALUE}" = "" ]; then
|
if [ ! "${VALUE}" = "" ]; then
|
||||||
|
# If multiple values follow, select first one
|
||||||
|
VALUE=`echo ${VALUE} | awk '{ print $1 }'`
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue