|
@@ -235,7 +235,7 @@ function matrix_configure_homeserver_yaml {
|
235
|
235
|
mv ${ymltemp} "${filepath}"
|
236
|
236
|
|
237
|
237
|
sed -i 's|no_tls: .*|no_tls: False|g' "${filepath}"
|
238
|
|
- sed -i 's| tls: .*| tls: True|g' "${filepath}"
|
|
238
|
+ sed -i ':a;N;$!ba;s/ tls: [^\n]*/ tls: False/2' "${filepath}"
|
239
|
239
|
sed -i 's|enable_registration_captcha.*|enable_registration_captcha: False|g' "${filepath}"
|
240
|
240
|
sed -i "s|database: \".*|database: \"${MATRIX_DATA_DIR}/homeserver.db\"|g" "${filepath}"
|
241
|
241
|
sed -i "s|media_store_path:.*|media_store_path: \"${MATRIX_DATA_DIR}/media_store\"|g" "${filepath}"
|
|
@@ -665,6 +665,7 @@ function install_home_server {
|
665
|
665
|
|
666
|
666
|
groupadd matrix
|
667
|
667
|
useradd -c "Matrix system account" -d $MATRIX_DATA_DIR -m -r -g matrix matrix
|
|
668
|
+ usermod -a -G www-data matrix
|
668
|
669
|
|
669
|
670
|
function_check install_turn
|
670
|
671
|
install_turn
|