Checks when resetting tripwire
This commit is contained in:
parent
9741890691
commit
a752130127
|
@ -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...'
|
||||
|
|
Loading…
Reference in New Issue