From bd1df3f79fbd4f2eb0f52b2f0ec6a325830a9d73 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 31 Mar 2017 13:37:04 +0100 Subject: [PATCH] Matrix mods --- src/freedombone-app-matrix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-matrix b/src/freedombone-app-matrix index 63d663d6..3ef4a1d7 100755 --- a/src/freedombone-app-matrix +++ b/src/freedombone-app-matrix @@ -235,7 +235,7 @@ function matrix_configure_homeserver_yaml { mv ${ymltemp} "${filepath}" sed -i 's|no_tls: .*|no_tls: False|g' "${filepath}" - sed -i 's| tls: .*| tls: True|g' "${filepath}" + sed -i ':a;N;$!ba;s/ tls: [^\n]*/ tls: False/2' "${filepath}" sed -i 's|enable_registration_captcha.*|enable_registration_captcha: False|g' "${filepath}" sed -i "s|database: \".*|database: \"${MATRIX_DATA_DIR}/homeserver.db\"|g" "${filepath}" sed -i "s|media_store_path:.*|media_store_path: \"${MATRIX_DATA_DIR}/media_store\"|g" "${filepath}" @@ -665,6 +665,7 @@ function install_home_server { groupadd matrix useradd -c "Matrix system account" -d $MATRIX_DATA_DIR -m -r -g matrix matrix + usermod -a -G www-data matrix function_check install_turn install_turn