Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2020-04-04 16:56:00 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-04-04 16:56:00 +0300
commit9da066592962fd6a6c1eb05d3231d7c3d077fc33 (patch)
tree96ca71f9830ae1856564e983c2b1de6ceff651ad /include/tests_networking
parent032bb6988e7b94415cbe202dd26177e94803859f (diff)
[NETW-2400] Improved logging
Diffstat (limited to 'include/tests_networking')
-rw-r--r--include/tests_networking4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/tests_networking b/include/tests_networking
index ea326ce0..83a7aae0 100644
--- a/include/tests_networking
+++ b/include/tests_networking
@@ -54,7 +54,7 @@
if IsVerbose; then Display --indent 2 --text "- Hostname (FQDN length)" --result "${STATUS_UNKNOWN}" --color YELLOW; fi
else
# Fine
- LogText "Result: FQDN is defined and shorter than 253 characters (${#FQDN} characters)"
+ LogText "Result: FQDN is defined and not longer than 253 characters (${#FQDN} characters)"
if IsVerbose; then Display --indent 2 --text "- Hostname (FQDN length)" --result "${STATUS_OK}" --color GREEN; fi
fi
# Now test short hostname
@@ -66,6 +66,8 @@
if [ ${#HOSTNAME} -gt 63 ]; then
LogText "Result: hostname is more than 63 characters"
Display --indent 2 --text "- Hostname (length)" --result "${STATUS_WARNING}" --color RED
+ else
+ LogText "Result: hostnamed is defined and not longer than 63 characters"
fi
# Test valid characters (normally a dot should not be in the name, but we can't be 100% sure we have short name)
FIND=$(echo "${HOSTNAME}" | ${TRBINARY} -d '[a-z0-9\.\-]')