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