Skip to content
Snippets Groups Projects
Commit 278b409e authored by Bob Mottram's avatar Bob Mottram
Browse files

Workaround for nginx failures when resetting tripwire

parent 6acbc211
No related branches found
No related tags found
No related merge requests found
...@@ -1352,6 +1352,14 @@ function reset_tripwire { ...@@ -1352,6 +1352,14 @@ function reset_tripwire {
' | reset-tripwire ' | reset-tripwire
echo '' echo ''
# Sometimes nginx fails to restart if matrix is installed
# Restart matrix first
if [ -d /etc/matrix ]; then
systemctl restart matrix
systemctl restart nginx
fi
if [ -f /var/lib/tripwire/${HOSTNAME}.twd ]; then if [ -f /var/lib/tripwire/${HOSTNAME}.twd ]; then
show_tripwire_verification_code show_tripwire_verification_code
echo $'Tripwire is now reset. Take a note of the above hash, or record' echo $'Tripwire is now reset. Take a note of the above hash, or record'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment