Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Quillerou <laurent.quillerou@gmail.com>2015-09-07 18:52:19 +0300
committerLaurent Quillerou <laurent.quillerou@gmail.com>2015-09-07 18:52:19 +0300
commitb83c3fbb10600964963b96c4099867822b56fcb0 (patch)
tree561f66206e751afb4ef3de4521c883e88cf69efe /include/tests_webservers
parent3cdd9ea949379a8ad06daa06e739d1e65e4a52bc (diff)
Include main nginx.conf so that it generate nginx_config_option
Diffstat (limited to 'include/tests_webservers')
-rw-r--r--include/tests_webservers1
1 files changed, 1 insertions, 0 deletions
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