From b83c3fbb10600964963b96c4099867822b56fcb0 Mon Sep 17 00:00:00 2001 From: Laurent Quillerou Date: Mon, 7 Sep 2015 18:52:19 +0300 Subject: [PATCH] Include main nginx.conf so that it generate nginx_config_option --- include/tests_webservers | 1 + 1 file changed, 1 insertion(+) diff --git a/include/tests_webservers b/include/tests_webservers index b630c7a3..2a0cc79c 100644 --- a/include/tests_webservers +++ b/include/tests_webservers @@ -418,6 +418,7 @@ # Remove temp file if [ ! "${TMPFILE}" = "" ]; then if [ -f ${TMPFILE} ]; then rm -f ${TMPFILE}; fi; fi N=0 + cat ${NGINX_CONF_LOCATION} | sed -e 's/^[ \t]*//' | grep -v "^#" | grep -v "^$" | sed 's/[\t]/ /g' | sed 's/ / /g' | sed 's/ / /g' >> ${TMPFILE} # Search for included configuration files (may include directories and wild cards) FIND=`grep "include" ${NGINX_CONF_LOCATION} | ${AWKBINARY} '{ if ($1=="include") { print $2 }}' | sed 's/;$//g'` for I in ${FIND}; do