Hack to try to ensure nginx failures don't happen when matrix is installed

This commit is contained in:
Bob Mottram 2018-05-25 15:36:06 +01:00
parent 95b0f1cbee
commit fe963a94d6
1 changed files with 7 additions and 0 deletions

View File

@ -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