From a7521301270a304763221cb65b70e64662fb6645 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 15 Jul 2017 11:25:57 +0100 Subject: [PATCH] Checks when resetting tripwire --- src/freedombone-controlpanel | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index c7975152..f60cc0e7 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -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...'