mirror of https://github.com/CISOfy/lynis.git
Changed path names into variables
This commit is contained in:
parent
122d6063a9
commit
8b2da6329e
|
@ -240,14 +240,15 @@
|
|||
# Description : Check for CSF (ConfigServer Security & Firewall)
|
||||
Register --test-no FIRE-4524 --weight L --network NO --description "Check for CSF presence"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
logtext "Test: check /etc/csf/csf.conf"
|
||||
if [ -f /etc/csf/csf.conf ]; then
|
||||
logtext "Result: /etc/csf.conf exists"
|
||||
FILE="/etc/csf/csf.conf"
|
||||
logtext "Test: check ${FILE}"
|
||||
if [ -f ${FILE} ]; then
|
||||
logtext "Result: ${FILE} exists"
|
||||
FIREWALL_ACTIVE=1
|
||||
FIREWALL_SOFTWARE="csf"
|
||||
Display --indent 2 --text "- Checking CSF status (configuration file)" --result FOUND --color GREEN
|
||||
else
|
||||
logtext "Result: /etc/csf/csf.conf does NOT exist"
|
||||
logtext "Result: ${FILE} does NOT exist"
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue