diff --git a/include/functions b/include/functions index d5311548..148f2dbe 100644 --- a/include/functions +++ b/include/functions @@ -1104,7 +1104,6 @@ LogText "Hash (hostname): ${HASH_HOSTNAME}" LogText "Hash (ssh or machineid): ${HASH2}" HOSTID2="${HASH2}" - Report "hostid2=${HOSTID2}" fi fi diff --git a/lynis b/lynis index 9746fe97..bbe94b5a 100755 --- a/lynis +++ b/lynis @@ -907,6 +907,9 @@ ${NORMAL} else LogText "Info: no HostID found or invalid one" fi + if [ ! "${HOSTID2}" = "" ]; then + Report "hostid2=${HOSTID2}" + fi if [ ! "${MACHINEID}" = "" ]; then LogText "Info: found a machine ID ${MACHINEID}" Report "machineid=${MACHINEID}"