Convert tripwire key filenames
This commit is contained in:
parent
c9ee053494
commit
61aef304fe
|
@ -1325,10 +1325,15 @@ function reset_tripwire {
|
||||||
any_key
|
any_key
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if [ ! -f /etc/tripwire/${PROJECT_NAME}-local.key ]; then
|
if [ ! -f /etc/tripwire/${HOSTNAME}-local.key ]; then
|
||||||
echo $'Error: missing local key'
|
if [ -f /etc/tripwire/${PROJECT_NAME}-local.key ]; then
|
||||||
any_key
|
mv /etc/tripwire/${PROJECT_NAME}-local.key /etc/tripwire/${HOSTNAME}-local.key
|
||||||
return
|
mv /etc/tripwire/${PROJECT_NAME}-site.key /etc/tripwire/${HOSTNAME}-site.key
|
||||||
|
else
|
||||||
|
echo $'Error: missing local key'
|
||||||
|
any_key
|
||||||
|
return
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
clear
|
clear
|
||||||
echo $'Turing off logging...'
|
echo $'Turing off logging...'
|
||||||
|
@ -1338,11 +1343,11 @@ function reset_tripwire {
|
||||||
echo $'Creating configuration...'
|
echo $'Creating configuration...'
|
||||||
echo '
|
echo '
|
||||||
|
|
||||||
' | twadmin --create-cfgfile -S /etc/tripwire/${PROJECT_NAME}-site.key /etc/tripwire/twcfg.txt
|
' | twadmin --create-cfgfile -S /etc/tripwire/${HOSTNAME}-site.key /etc/tripwire/twcfg.txt
|
||||||
echo $'Resetting policy...'
|
echo $'Resetting policy...'
|
||||||
echo '
|
echo '
|
||||||
|
|
||||||
' | twadmin --create-polfile -S /etc/tripwire/${PROJECT_NAME}-site.key /etc/tripwire/twpol.txt
|
' | twadmin --create-polfile -S /etc/tripwire/${HOSTNAME}-site.key /etc/tripwire/twpol.txt
|
||||||
echo $'Creating tripwire database'
|
echo $'Creating tripwire database'
|
||||||
echo '
|
echo '
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue