mirror of https://github.com/CISOfy/lynis.git
Added detection for machine ID
This commit is contained in:
parent
d99dbc7406
commit
4d062ceb4a
7
lynis
7
lynis
|
@ -451,6 +451,7 @@
|
|||
RemovePIDFile
|
||||
exit 1
|
||||
fi
|
||||
logtextbreak
|
||||
logtext "### ${PROGRAM_copyright} ###"
|
||||
|
||||
# Clear report file (to avoid appending to an existing file)
|
||||
|
@ -684,6 +685,12 @@
|
|||
else
|
||||
logtext "Info: no HostID found or invalid one"
|
||||
fi
|
||||
if [ ! "${MACHINEID}" = "" ]; then
|
||||
logtext "Info: found a machine ID ${MACHINEID}"
|
||||
report "machineid=${MACHINEID}"
|
||||
else
|
||||
logtext "Info: no machine ID found"
|
||||
fi
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue