Workaround for nginx failures when resetting tripwire
This commit is contained in:
parent
6acbc2118b
commit
278b409e44
|
@ -1352,6 +1352,14 @@ function reset_tripwire {
|
|||
|
||||
' | reset-tripwire
|
||||
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
|
||||
show_tripwire_verification_code
|
||||
echo $'Tripwire is now reset. Take a note of the above hash, or record'
|
||||
|
|
Loading…
Reference in New Issue