Don't show tripwire code if database file doesn't exist

This commit is contained in:
Bob Mottram 2017-08-05 13:32:34 +01:00
parent d9adff3a9e
commit 61d555737e
1 changed files with 3 additions and 0 deletions

View File

@ -1269,6 +1269,9 @@ function security_settings {
} }
function show_tripwire_verification_code { function show_tripwire_verification_code {
if [ ! -f /var/lib/tripwire/${HOSTNAME}.twd ]; then
return
fi
clear clear
echo '' echo ''
echo $'Tripwire Verification Code' echo $'Tripwire Verification Code'