Move reporting of hostid2 to main section to ensure it is added to report

This commit is contained in:
Michael Boelen 2018-06-28 16:29:16 +02:00
parent 6e0ac57b68
commit 65190d214c
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
2 changed files with 3 additions and 1 deletions

View File

@ -1104,7 +1104,6 @@
LogText "Hash (hostname): ${HASH_HOSTNAME}"
LogText "Hash (ssh or machineid): ${HASH2}"
HOSTID2="${HASH2}"
Report "hostid2=${HOSTID2}"
fi
fi

3
lynis
View File

@ -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}"