mirror of https://github.com/CISOfy/lynis.git
Move reporting of hostid2 to main section to ensure it is added to report
This commit is contained in:
parent
6e0ac57b68
commit
65190d214c
|
@ -1104,7 +1104,6 @@
|
||||||
LogText "Hash (hostname): ${HASH_HOSTNAME}"
|
LogText "Hash (hostname): ${HASH_HOSTNAME}"
|
||||||
LogText "Hash (ssh or machineid): ${HASH2}"
|
LogText "Hash (ssh or machineid): ${HASH2}"
|
||||||
HOSTID2="${HASH2}"
|
HOSTID2="${HASH2}"
|
||||||
Report "hostid2=${HOSTID2}"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
3
lynis
3
lynis
|
@ -907,6 +907,9 @@ ${NORMAL}
|
||||||
else
|
else
|
||||||
LogText "Info: no HostID found or invalid one"
|
LogText "Info: no HostID found or invalid one"
|
||||||
fi
|
fi
|
||||||
|
if [ ! "${HOSTID2}" = "" ]; then
|
||||||
|
Report "hostid2=${HOSTID2}"
|
||||||
|
fi
|
||||||
if [ ! "${MACHINEID}" = "" ]; then
|
if [ ! "${MACHINEID}" = "" ]; then
|
||||||
LogText "Info: found a machine ID ${MACHINEID}"
|
LogText "Info: found a machine ID ${MACHINEID}"
|
||||||
Report "machineid=${MACHINEID}"
|
Report "machineid=${MACHINEID}"
|
||||||
|
|
Loading…
Reference in New Issue