Include instructions if hostid2 is empty

This commit is contained in:
Michael Boelen 2017-07-10 16:07:39 +02:00
parent 29f5dc7e53
commit df32cb29b0
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 7 additions and 0 deletions

View File

@ -243,6 +243,13 @@
else
echo "${RED}Error${NORMAL}: No hostid and/or hostid2 found. Can not upload report file."
echo "Suggested command: lynis show hostids"
echo ""
echo "If hostid2 is the only ID that is missing, use the following step:"
echo "Create hash and add it to custom.prf"
echo "echo \"hostid2=\$(cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 64 | head -n 1)\" > /etc/lynis/custom.prf"
echo ""
echo "Note: do not replicate this ID to other systems, as it needs to be unique per system"
# Quit
ExitFatal
fi