From f50846d0d327b7b65cadd1ce8c7fd17c06e8d9cb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Dec 2016 23:28:05 +0000 Subject: [PATCH] Don't include url when adding user --- src/freedombone-app-matrix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/freedombone-app-matrix b/src/freedombone-app-matrix index bf3f448f..42500c55 100755 --- a/src/freedombone-app-matrix +++ b/src/freedombone-app-matrix @@ -252,12 +252,8 @@ function add_user_matrix { if [ -f /var/lib/matrix/.synapse/bin/activate ]; then source /var/lib/matrix/.synapse/bin/activate fi - register_new_matrix_user -c ${MATRIX_DATA_DIR}/homeserver.yaml https://${DEFAULT_DOMAIN_NAME}/matrix -u "${new_username}" -p "${new_user_password}" -a - if [ ! "$?" = "0" ]; then - echo '1' - else - echo "0" - fi + register_new_matrix_user -c ${MATRIX_DATA_DIR}/homeserver.yaml -u "${new_username}" -p "${new_user_password}" -a + echo "0" } function install_interactive_matrix {