mirror of https://github.com/CISOfy/lynis.git
Strip out any comments at end of nginx configuration lines
This commit is contained in:
parent
6fdc46cae5
commit
670b18b6f5
|
@ -1636,7 +1636,7 @@
|
|||
FIND=$(cat ${TMP_NGINX_FILE} | sed 's/ /:space:/g')
|
||||
DEPTH=0
|
||||
for I in ${FIND}; do
|
||||
I=`echo ${I} | sed 's/:space:/ /g' | sed 's/;$//'`
|
||||
I=`echo ${I} | sed 's/:space:/ /g' | sed 's/;$//' | sed 's/ #.*$//'`
|
||||
OPTION=`echo ${I} | awk '{ print $1 }'`
|
||||
VALUE=`echo ${I}| cut -d' ' -f2-`
|
||||
LogText "Result: found option ${OPTION} in ${CONFIG_FILE} with value '${VALUE}'"
|
||||
|
|
Loading…
Reference in New Issue