mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-23 22:04:39 +02:00
[MAIL-8804] replaced static strings with translation-aware strings
This commit is contained in:
parent
c68279f5b3
commit
fa9fdd4322
@ -94,7 +94,7 @@
|
|||||||
Display --indent 4 --text "- Type" --result "${EXIM_TYPE}" --color GREEN
|
Display --indent 4 --text "- Type" --result "${EXIM_TYPE}" --color GREEN
|
||||||
else
|
else
|
||||||
LogText "Result: Exim Type - Not Configured"
|
LogText "Result: Exim Type - Not Configured"
|
||||||
Display --indent 4 --text "- Type" --result "Not Configured" --color WHITE
|
Display --indent 4 --text "- Type" --result "${STATUS_NOT_CONFIGURED}" --color WHITE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${EXIM_TYPE}" = "INTERNET HOST" -o "${EXIM_TYPE}" = "SMARTHOST" ]; then
|
if [ "${EXIM_TYPE}" = "INTERNET HOST" -o "${EXIM_TYPE}" = "SMARTHOST" ]; then
|
||||||
@ -112,10 +112,10 @@
|
|||||||
EXIM_TLS=$(${EXIMBINARY} -bP tls_advertise_hosts | ${CUTBINARY} -d '=' -f2 | ${SEDBINARY} -e 's/^\s*//' -e 's/\s*$//')
|
EXIM_TLS=$(${EXIMBINARY} -bP tls_advertise_hosts | ${CUTBINARY} -d '=' -f2 | ${SEDBINARY} -e 's/^\s*//' -e 's/\s*$//')
|
||||||
if [ -n "${EXIM_TLS}" ]; then
|
if [ -n "${EXIM_TLS}" ]; then
|
||||||
LogText "Result: Enabled"
|
LogText "Result: Enabled"
|
||||||
Display --indent 4 --text "- TLS" --result "ENABLED" --color GREEN
|
Display --indent 4 --text "- TLS" --result "${STATUS_ENABLED}" --color GREEN
|
||||||
else
|
else
|
||||||
LogText "Result: Not enabled"
|
LogText "Result: Not enabled"
|
||||||
Display --indent 4 --text "- TLS" --result "NOT ENABLED" --color WHITE
|
Display --indent 4 --text "- TLS" --result "${STATUS_DISABLED}" --color WHITE
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -144,7 +144,7 @@
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
LogText "Result: Certificate not set"
|
LogText "Result: Certificate not set"
|
||||||
Display --indent 4 --text "- Certificate" --result "Not Configured" --color WHITE
|
Display --indent 4 --text "- Certificate" --result "${STATUS_NOT_CONFIGURED}" --color WHITE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${EXIM_PRIVATEKEY}" ]; then
|
if [ -n "${EXIM_PRIVATEKEY}" ]; then
|
||||||
@ -158,7 +158,7 @@
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
LogText "Result: Private Key not set"
|
LogText "Result: Private Key not set"
|
||||||
Display --indent 4 --text "- Private Key" --result "Not Configured" --color WHITE
|
Display --indent 4 --text "- Private Key" --result "${STATUS_NOT_CONFIGURED}" --color WHITE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LogText "Test: Exim Verify Certificates"
|
LogText "Test: Exim Verify Certificates"
|
||||||
@ -207,15 +207,15 @@
|
|||||||
LogText "Result: Try Verify Hosts enabled"
|
LogText "Result: Try Verify Hosts enabled"
|
||||||
case "${EXIM_TYPE}" in
|
case "${EXIM_TYPE}" in
|
||||||
"INTERNET HOST" )
|
"INTERNET HOST" )
|
||||||
Display --indent 4 --text "- Try Verify Hosts" --result "ENABLED" --color GREEN
|
Display --indent 4 --text "- Try Verify Hosts" --result "${STATUS_ENABLED}" --color GREEN
|
||||||
;;
|
;;
|
||||||
"SATELLITE" | "SMARTHOST" )
|
"SATELLITE" | "SMARTHOST" )
|
||||||
Display --indent 4 --text "- Try Verify Hosts" --result "ENABLED" --color YELLOW
|
Display --indent 4 --text "- Try Verify Hosts" --result "${STATUS_ENABLED}" --color YELLOW
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
LogText "Result: Try Verify Hosts not enabled"
|
LogText "Result: Try Verify Hosts not enabled"
|
||||||
Display --indent 4 --text "- Try Verify Hosts" --result "NOT ENABLED" --color WHITE
|
Display --indent 4 --text "- Try Verify Hosts" --result "${STATUS_DISABLED}" --color WHITE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LogText "Test: Exim Verify Hosts"
|
LogText "Test: Exim Verify Hosts"
|
||||||
@ -223,15 +223,15 @@
|
|||||||
LogText "Result: Verify Hosts enabled"
|
LogText "Result: Verify Hosts enabled"
|
||||||
case "${EXIM_TYPE}" in
|
case "${EXIM_TYPE}" in
|
||||||
"INTERNET HOST" )
|
"INTERNET HOST" )
|
||||||
Display --indent 4 --text "- Verify Hosts" --result "ENABLED" --color YELLOW
|
Display --indent 4 --text "- Verify Hosts" --result "${STATUS_ENABLED}" --color YELLOW
|
||||||
;;
|
;;
|
||||||
"SATELLITE" | "SMARTHOST" )
|
"SATELLITE" | "SMARTHOST" )
|
||||||
Display --indent 4 --text "- Verify Hosts" --result "ENABLED" --color GREEN
|
Display --indent 4 --text "- Verify Hosts" --result "${STATUS_ENABLED}" --color GREEN
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
LogText "Result: Verify Hosts not enabled"
|
LogText "Result: Verify Hosts not enabled"
|
||||||
Display --indent 4 --text "- Verify Hosts" --result "NOT ENABLED" --color WHITE
|
Display --indent 4 --text "- Verify Hosts" --result "${STATUS_DISABLED}" --color WHITE
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user