mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Move reporting of hostid2 to main section to ensure it is added to report
This commit is contained in:
parent
6e0ac57b68
commit
65190d214c
2 changed files with 3 additions and 1 deletions
|
|
@ -1104,7 +1104,6 @@
|
|||
LogText "Hash (hostname): ${HASH_HOSTNAME}"
|
||||
LogText "Hash (ssh or machineid): ${HASH2}"
|
||||
HOSTID2="${HASH2}"
|
||||
Report "hostid2=${HOSTID2}"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
3
lynis
3
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}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue