From 983e293eb157131ca5e085e4927ea5fc220edc73 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sat, 18 Jun 2016 11:14:01 +0200 Subject: Replaced text strings to allow translations --- include/tests_insecure_services | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'include/tests_insecure_services') diff --git a/include/tests_insecure_services b/include/tests_insecure_services index c26734be..4b181d42 100644 --- a/include/tests_insecure_services +++ b/include/tests_insecure_services @@ -40,7 +40,7 @@ IsRunning inetd if [ ${RUNNING} -eq 1 ]; then LogText "Result: inetd is running" - Display --indent 2 --text "- Checking inetd status" --result ACTIVE --color GREEN + Display --indent 2 --text "- Checking inetd status" --result "ACTIVE" --color GREEN INETD_ACTIVE=1 else LogText "Result: inetd is NOT running" @@ -59,10 +59,10 @@ LogText "Test: Searching for file ${INETD_CONFIG_FILE}" if [ -f ${INETD_CONFIG_FILE} ]; then LogText "Result: ${INETD_CONFIG_FILE} exists" - Display --indent 4 --text "- Checking inetd.conf" --result FOUND --color WHITE + Display --indent 4 --text "- Checking inetd.conf" --result "${STATUS_FOUND}" --color WHITE else LogText "Result: ${INETD_CONFIG_FILE} does not exist" - Display --indent 4 --text "- Checking inetd.conf" --result "NOT FOUND" --color WHITE + Display --indent 4 --text "- Checking inetd.conf" --result "${STATUS_NOT_FOUND}" --color WHITE fi fi # @@ -77,9 +77,9 @@ LogText "Test: check if all services are disabled if inetd is disabled" FIND=`grep -v "^#" ${INETD_CONFIG_FILE} | grep -v "^$"` if [ "${FIND}" = "" ]; then - Display --indent 4 --text "- Checking inetd.conf services" --result OK --color GREEN + Display --indent 4 --text "- Checking inetd.conf services" --result "${STATUS_OK}" --color GREEN else - Display --indent 4 --text "- Checking inetd.conf services" --result SUGGESTION --color YELLOW + Display --indent 4 --text "- Checking inetd.conf services" --result "${STATUS_SUGGESTION}" --color YELLOW ReportSuggestion ${TEST_NO} "Although inetd is not running, make sure no services are enabled in ${INETD_CONFIG_FILE}" fi fi @@ -95,11 +95,11 @@ FIND=`grep "^telnet" ${INETD_CONFIG_FILE}` if [ "${FIND}" = "" ]; then LogText "Result: telnet not enabled in ${INETD_CONFIG_FILE}" - Display --indent 2 --text "- Checking inetd (telnet)" --result "NOT FOUND" --color GREEN + Display --indent 2 --text "- Checking inetd (telnet)" --result "${STATUS_NOT_FOUND}" --color GREEN AddHP 3 3 else LogText "Result: telnet enabled in ${INETD_CONFIG_FILE}" - Display --indent 2 --text "- Checking inetd (telnet)" --result WARNING --color RED + Display --indent 2 --text "- Checking inetd (telnet)" --result "${STATUS_WARNING}" --color RED ReportSuggestion "${TEST_NO}" "Disable telnet in inetd configuration and use SSH instead" AddHP 1 3 fi -- cgit v1.2.3