Преглед на файлове

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

Bob Mottram преди 6 години
родител
ревизия
fe963a94d6
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7
    0
      src/freedombone-upgrade

+ 7
- 0
src/freedombone-upgrade Целия файл

@@ -126,6 +126,13 @@ fi
126 126
 # If logging was left on then turn it off
127 127
 ${PROJECT_NAME}-logging off
128 128
 
129
+# This is a hack to fix nginx failures which happen sometimes
130
+# when matrix is installed
131
+if [ -d /etc/matrix ]; then
132
+    systemctl restart matrix
133
+    systemctl restart nginx
134
+fi
135
+
129 136
 # upgrading file prevents USB canary from activating
130 137
 if [ -f /tmp/.upgrading ]; then
131 138
     rm /tmp/.upgrading