mirror of https://github.com/CISOfy/lynis.git
[LOGG-2180] minor cleanup
This commit is contained in:
parent
928023ec6a
commit
943e09db01
|
@ -465,13 +465,11 @@
|
|||
FIND=$(${LSOFBINARY} -n 2>&1 | ${GREPBINARY} "log$" | ${EGREPBINARY} -v "WARNING|Output information" | ${AWKBINARY} '{ if ($5=="REG") { print $9 } }' | ${SORTBINARY} -u | ${GREPBINARY} -v "^$")
|
||||
for I in ${FIND}; do
|
||||
LogText "Found logfile: ${I}"
|
||||
Report "open_logfile[]=${I}"
|
||||
done
|
||||
Display --indent 2 --text "- Checking open log files" --result "${STATUS_DONE}" --color GREEN
|
||||
else
|
||||
LogText "Result: lsof not installed, skipping test"
|
||||
Display --indent 2 --text "- Checking open log files" --result "${STATUS_SKIPPED}" --color YELLOW
|
||||
# Add suggestion
|
||||
Display --indent 2 --text "- Checking open log files" --result "${STATUS_SKIPPED}" --color WHITE
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue