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