浏览代码

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

Bob Mottram 7 年前
父节点
当前提交
fe963a94d6
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      src/freedombone-upgrade

+ 7
- 0
src/freedombone-upgrade 查看文件

126
 # If logging was left on then turn it off
126
 # If logging was left on then turn it off
127
 ${PROJECT_NAME}-logging off
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
 # upgrading file prevents USB canary from activating
136
 # upgrading file prevents USB canary from activating
130
 if [ -f /tmp/.upgrading ]; then
137
 if [ -f /tmp/.upgrading ]; then
131
     rm /tmp/.upgrading
138
     rm /tmp/.upgrading