Changed path names into variables

This commit is contained in:
mboelen 2015-03-18 10:40:59 +01:00
parent 122d6063a9
commit 8b2da6329e
1 changed files with 5 additions and 4 deletions

View File

@ -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
#