|
@@ -1352,6 +1352,14 @@ function reset_tripwire {
|
1352
|
1352
|
|
1353
|
1353
|
' | reset-tripwire
|
1354
|
1354
|
echo ''
|
|
1355
|
+
|
|
1356
|
+ # Sometimes nginx fails to restart if matrix is installed
|
|
1357
|
+ # Restart matrix first
|
|
1358
|
+ if [ -d /etc/matrix ]; then
|
|
1359
|
+ systemctl restart matrix
|
|
1360
|
+ systemctl restart nginx
|
|
1361
|
+ fi
|
|
1362
|
+
|
1355
|
1363
|
if [ -f /var/lib/tripwire/${HOSTNAME}.twd ]; then
|
1356
|
1364
|
show_tripwire_verification_code
|
1357
|
1365
|
echo $'Tripwire is now reset. Take a note of the above hash, or record'
|