mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Added detection for machine ID
This commit is contained in:
parent
d99dbc7406
commit
4d062ceb4a
1 changed files with 7 additions and 0 deletions
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 a new issue