Matrix mods

This commit is contained in:
Bob Mottram 2017-03-31 13:37:04 +01:00
parent dfccc08009
commit bd1df3f79f
1 changed files with 2 additions and 1 deletions

View File

@ -235,7 +235,7 @@ function matrix_configure_homeserver_yaml {
mv ${ymltemp} "${filepath}" mv ${ymltemp} "${filepath}"
sed -i 's|no_tls: .*|no_tls: False|g' "${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|enable_registration_captcha.*|enable_registration_captcha: False|g' "${filepath}"
sed -i "s|database: \".*|database: \"${MATRIX_DATA_DIR}/homeserver.db\"|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}" 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 groupadd matrix
useradd -c "Matrix system account" -d $MATRIX_DATA_DIR -m -r -g matrix 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 function_check install_turn
install_turn install_turn