From fe963a94d6ea6bbdf124fb97379378c7002b30c0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 25 May 2018 15:36:06 +0100 Subject: [PATCH] Hack to try to ensure nginx failures don't happen when matrix is installed --- src/freedombone-upgrade | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/freedombone-upgrade b/src/freedombone-upgrade index e408c619..aa0acd17 100755 --- a/src/freedombone-upgrade +++ b/src/freedombone-upgrade @@ -126,6 +126,13 @@ fi # If logging was left on then turn it off ${PROJECT_NAME}-logging off +# This is a hack to fix nginx failures which happen sometimes +# when matrix is installed +if [ -d /etc/matrix ]; then + systemctl restart matrix + systemctl restart nginx +fi + # upgrading file prevents USB canary from activating if [ -f /tmp/.upgrading ]; then rm /tmp/.upgrading