瀏覽代碼

Remove any earlier matrix config

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

+ 3
- 0
src/freedombone-app-matrix 查看文件

@@ -103,6 +103,9 @@ function matrix_generate {
103 103
     [[ "${REPORT_STATS}" != "yes" ]] && [[ "${REPORT_STATS}" != "no" ]] && \
104 104
         echo "STOP! REPORT_STATS needs to be 'no' or 'yes'" && breakup="1"
105 105
 
106
+    if [ -f ${MATRIX_DATA_DIR}/homeserver.yaml ]; then
107
+        rm ${MATRIX_DATA_DIR}/homeserver.yaml
108
+    fi
106 109
     matrix_generate_synapse_file ${MATRIX_DATA_DIR}/homeserver.yaml
107 110
     matrix_configure_homeserver_yaml "${turnkey}" ${MATRIX_DATA_DIR}/homeserver.yaml
108 111
 }