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 "^$")
|
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
|
for I in ${FIND}; do
|
||||||
LogText "Found logfile: ${I}"
|
LogText "Found logfile: ${I}"
|
||||||
Report "open_logfile[]=${I}"
|
|
||||||
done
|
done
|
||||||
Display --indent 2 --text "- Checking open log files" --result "${STATUS_DONE}" --color GREEN
|
Display --indent 2 --text "- Checking open log files" --result "${STATUS_DONE}" --color GREEN
|
||||||
else
|
else
|
||||||
LogText "Result: lsof not installed, skipping test"
|
LogText "Result: lsof not installed, skipping test"
|
||||||
Display --indent 2 --text "- Checking open log files" --result "${STATUS_SKIPPED}" --color YELLOW
|
Display --indent 2 --text "- Checking open log files" --result "${STATUS_SKIPPED}" --color WHITE
|
||||||
# Add suggestion
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue