mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 23:34:25 +02:00
Small style improvement
This commit is contained in:
parent
8d2b3a202f
commit
0e535c851a
@ -313,12 +313,13 @@
|
|||||||
FIREWALL_SOFTWARE="csf"
|
FIREWALL_SOFTWARE="csf"
|
||||||
Report "firewall_software[]=csf"
|
Report "firewall_software[]=csf"
|
||||||
Display --indent 2 --text "- Checking CSF status (configuration file)" --result "${STATUS_FOUND}" --color GREEN
|
Display --indent 2 --text "- Checking CSF status (configuration file)" --result "${STATUS_FOUND}" --color GREEN
|
||||||
|
|
||||||
LogText "Test: check if CSF testing mode is disabled"
|
LogText "Test: check if CSF testing mode is disabled"
|
||||||
FIND=$(${GREPBINARY} -P "^TESTING(\s|=)" ${FILE} | ${CUTBINARY} -d= -f2 | ${XARGSBINARY})
|
FIND=$(${GREPBINARY} -P "^TESTING(\s|=)" ${FILE} | ${CUTBINARY} -d= -f2 | ${XARGSBINARY})
|
||||||
if [ "${FIND}" = "0" ]; then
|
if [ "${FIND}" = "0" ]; then
|
||||||
Display --indent 4 --text "- Check if CSF testing mode is disabled" --result "${STATUS_OK}" --color GREEN
|
Display --indent 4 --text "- Check if CSF testing mode is disabled" --result "${STATUS_OK}" --color GREEN
|
||||||
else
|
else
|
||||||
Display --indent 4 --text "- Check if CSF testing mode is disabled" --result "${STATUS_WARNING}" --color RED
|
Display --indent 4 --text "- Check if CSF testing mode is disabled" --result "${STATUS_WARNING}" --color RED
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
LogText "Result: ${FILE} does NOT exist"
|
LogText "Result: ${FILE} does NOT exist"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user