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