|
@@ -154,7 +154,7 @@ function any_key_verify {
|
154
|
154
|
dialog --title $"Check tripwire" \
|
155
|
155
|
--msgbox $"\nThe hash should not contain any spaces" 10 40
|
156
|
156
|
else
|
157
|
|
- DBHASH=$(sha512sum /var/lib/tripwire/${PROJECT_NAME}.twd | awk -F ' ' '{print $1}')
|
|
157
|
+ DBHASH=$(sha512sum /var/lib/tripwire/${HOSTNAME}.twd | awk -F ' ' '{print $1}')
|
158
|
158
|
if [[ "$DBHASH" == "$GIVEN_HASH" ]]; then
|
159
|
159
|
dialog --title $"Check tripwire" \
|
160
|
160
|
--msgbox $"\nSuccess\n\nThe hash you gave matches the current tripwire database" 10 40
|
|
@@ -1305,7 +1305,7 @@ function security_settings {
|
1305
|
1305
|
}
|
1306
|
1306
|
|
1307
|
1307
|
function show_tripwire_verification_code {
|
1308
|
|
- if [ ! -f /var/lib/tripwire/${PROJECT_NAME}.twd ]; then
|
|
1308
|
+ if [ ! -f /var/lib/tripwire/${HOSTNAME}.twd ]; then
|
1309
|
1309
|
return
|
1310
|
1310
|
fi
|
1311
|
1311
|
clear
|
|
@@ -1346,7 +1346,7 @@ function reset_tripwire {
|
1346
|
1346
|
echo $'Creating tripwire database'
|
1347
|
1347
|
echo '
|
1348
|
1348
|
|
1349
|
|
-' | tripwire --init --cfgfile /etc/tripwire/tw.cfg --polfile /etc/tripwire/tw.pol --dbfile /var/lib/tripwire/${PROJECT_NAME}.twd
|
|
1349
|
+' | tripwire --init --cfgfile /etc/tripwire/tw.cfg --polfile /etc/tripwire/tw.pol --dbfile /var/lib/tripwire/${HOSTNAME}.twd
|
1350
|
1350
|
echo $'Resetting the Tripwire...'
|
1351
|
1351
|
echo ''
|
1352
|
1352
|
echo '
|
|
@@ -1361,7 +1361,7 @@ function reset_tripwire {
|
1361
|
1361
|
systemctl restart nginx
|
1362
|
1362
|
fi
|
1363
|
1363
|
|
1364
|
|
- if [ -f /var/lib/tripwire/${PROJECT_NAME}.twd ]; then
|
|
1364
|
+ if [ -f /var/lib/tripwire/${HOSTNAME}.twd ]; then
|
1365
|
1365
|
show_tripwire_verification_code
|
1366
|
1366
|
echo $'Tripwire is now reset. Take a note of the above hash, or record'
|
1367
|
1367
|
echo $'the QR code using a mobile device. This will enable you to independently'
|