mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Changed path names into variables
This commit is contained in:
parent
122d6063a9
commit
8b2da6329e
1 changed files with 5 additions and 4 deletions
|
|
@ -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 a new issue