From 70e20d514ca6bb2057cf889171fb165f8b12ad42 Mon Sep 17 00:00:00 2001 From: mboelen Date: Wed, 29 Apr 2015 13:53:40 +0200 Subject: [PATCH] Ensure that only one value is provided --- include/functions | 2 ++ 1 file changed, 2 insertions(+) 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