From 0485e73a7d9e2a238af94fdbb1b0760066ea4410 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 5 Aug 2017 11:26:24 +0100 Subject: [PATCH] More comprehensive tripwire reset --- src/freedombone-controlpanel | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index a92b53e5..2a2c8dce 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -1280,8 +1280,20 @@ function reset_tripwire { return fi clear + echo $'Creating configuration...' + echo ' + + ' | twadmin --create-cfgfile -S /etc/tripwire/${HOSTNAME}-site.key /etc/tripwire/twcfg.txt + echo $'Resetting policy...' + echo ' + + ' | twadmin --create-polfile -S /etc/tripwire/${HOSTNAME}-site.key /etc/tripwire/twpol.txt + echo $'Creating tripwire database' + echo ' + +' | tripwire --init --cfgfile /etc/tripwire/tw.cfg --polfile /etc/tripwire/tw.pol --dbfile /var/lib/tripwire/${HOSTNAME}.twd echo $'Resetting the Tripwire...' - echo ' ' + echo '' echo ' ' | reset-tripwire