diff --git a/include/functions b/include/functions index 1dc1c1d9..04ccfe13 100644 --- a/include/functions +++ b/include/functions @@ -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