Remove any earlier matrix config

This commit is contained in:
Bob Mottram 2016-12-30 18:22:59 +00:00
parent bcab0a806b
commit ff3e0783b0
1 changed files with 3 additions and 0 deletions

View File

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