Checks when resetting tripwire

This commit is contained in:
Bob Mottram 2017-07-15 11:25:57 +01:00
parent 9741890691
commit a752130127
1 changed files with 6 additions and 1 deletions

View File

@ -1264,9 +1264,14 @@ function security_settings {
function reset_tripwire {
if [ ! -f /usr/bin/reset-tripwire ]; then
echo $'Missing /usr/bin/reset-tripwire'
any_key
return
fi
if [ ! -f /etc/tripwire/${PROJECT_NAME}.net-local.key ]; then
if [ ! -f /etc/tripwire/${HOSTNAME}-local.key ]; then
echo $'Error: missing local key'
any_key
return
fi
clear
echo $'Resetting the Tripwire...'