Check if value after access_log option is filled

This commit is contained in:
mboelen 2015-03-17 19:02:46 +01:00
parent a12876e472
commit 49414f8b06
1 changed files with 6 additions and 4 deletions

View File

@ -775,11 +775,13 @@
logtext "Result: found logging disabled for one virtual host"
NGINX_ACCESS_LOG_DISABLED=1
else
if [ ! "${VALUE}" = "" ]; then
if [ ! -f ${VALUE} ]; then
logtext "Result: could not find referenced log file ${VALUE} in nginx configuration"
NGINX_ACCESS_LOG_MISSING=1
fi
fi
fi
;;
# Headers
add_header)