Browse Source

Disable matrix web client

Bob Mottram 8 years ago
parent
commit
b0526a6eba
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-app-matrix

+ 4
- 0
src/freedombone-app-matrix View File

643
         exit 783724
643
         exit 783724
644
     fi
644
     fi
645
 
645
 
646
+    # Disable the web client
646
     sed -i 's|web_client:.*|web_client: False|g' $MATRIX_DATA_DIR/homeserver.yaml
647
     sed -i 's|web_client:.*|web_client: False|g' $MATRIX_DATA_DIR/homeserver.yaml
648
+    if ! grep "#- webclient" $MATRIX_DATA_DIR/homeserver.yaml; then
649
+        sed -i 's|- webclient.*|#- webclient|g' $MATRIX_DATA_DIR/homeserver.yaml
650
+    fi
647
 
651
 
648
     chmod -R 700 $MATRIX_DATA_DIR/homeserver.yaml
652
     chmod -R 700 $MATRIX_DATA_DIR/homeserver.yaml
649
     chown -R matrix:matrix /etc/matrix
653
     chown -R matrix:matrix /etc/matrix