mirror of https://github.com/CISOfy/lynis.git
Check if value after access_log option is filled
This commit is contained in:
parent
a12876e472
commit
49414f8b06
|
@ -708,7 +708,7 @@
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Only check the file if it isn't a symlink (after previous check)
|
# Only check the file if it isn't a symlink (after previous check)
|
||||||
if [ -f ${sFILE} -a ! -L ${sFILE} ]; then
|
if [ -f ${sFILE} -a ! -L ${sFILE} ]; then
|
||||||
FINDVAL=`ls -l ${sFILE} | cut -c 9`
|
FINDVAL=`ls -l ${sFILE} | cut -c 9`
|
||||||
if [ "${FINDVAL}" = "w" ]; then FileIsWorldWritable="TRUE"; else FileIsWorldWritable="FALSE"; fi
|
if [ "${FINDVAL}" = "w" ]; then FileIsWorldWritable="TRUE"; else FileIsWorldWritable="FALSE"; fi
|
||||||
|
@ -775,9 +775,11 @@
|
||||||
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 [ ! -f ${VALUE} ]; then
|
if [ ! "${VALUE}" = "" ]; then
|
||||||
logtext "Result: could not find referenced log file ${VALUE} in nginx configuration"
|
if [ ! -f ${VALUE} ]; then
|
||||||
NGINX_ACCESS_LOG_MISSING=1
|
logtext "Result: could not find referenced log file ${VALUE} in nginx configuration"
|
||||||
|
NGINX_ACCESS_LOG_MISSING=1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue