瀏覽代碼

Workaround for nginx failures when resetting tripwire

Bob Mottram 7 年之前
父節點
當前提交
278b409e44
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. 8
    0
      src/freedombone-controlpanel

+ 8
- 0
src/freedombone-controlpanel 查看文件

@@ -1352,6 +1352,14 @@ function reset_tripwire {
1352 1352
 
1353 1353
                 ' | reset-tripwire
1354 1354
     echo ''
1355
+
1356
+    # Sometimes nginx fails to restart if matrix is installed
1357
+    # Restart matrix first
1358
+    if [ -d /etc/matrix ]; then
1359
+        systemctl restart matrix
1360
+        systemctl restart nginx
1361
+    fi
1362
+
1355 1363
     if [ -f /var/lib/tripwire/${HOSTNAME}.twd ]; then
1356 1364
         show_tripwire_verification_code
1357 1365
         echo $'Tripwire is now reset. Take a note of the above hash, or record'