Disable matrix web client

This commit is contained in:
Bob Mottram 2017-02-08 18:21:29 +00:00
parent 197920ffae
commit b0526a6eba
1 changed files with 4 additions and 0 deletions

View File

@ -643,7 +643,11 @@ function install_home_server {
exit 783724 exit 783724
fi fi
# Disable the web client
sed -i 's|web_client:.*|web_client: False|g' $MATRIX_DATA_DIR/homeserver.yaml sed -i 's|web_client:.*|web_client: False|g' $MATRIX_DATA_DIR/homeserver.yaml
if ! grep "#- webclient" $MATRIX_DATA_DIR/homeserver.yaml; then
sed -i 's|- webclient.*|#- webclient|g' $MATRIX_DATA_DIR/homeserver.yaml
fi
chmod -R 700 $MATRIX_DATA_DIR/homeserver.yaml chmod -R 700 $MATRIX_DATA_DIR/homeserver.yaml
chown -R matrix:matrix /etc/matrix chown -R matrix:matrix /etc/matrix