This commit is contained in:
Bob Mottram 2017-07-15 11:27:02 +01:00
commit 87ea6e3408
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...'