瀏覽代碼

Don't include url when adding user

Bob Mottram 8 年之前
父節點
當前提交
f50846d0d3
共有 1 個檔案被更改,包括 2 行新增6 行删除
  1. 2
    6
      src/freedombone-app-matrix

+ 2
- 6
src/freedombone-app-matrix 查看文件

@@ -252,12 +252,8 @@ function add_user_matrix {
252 252
     if [ -f /var/lib/matrix/.synapse/bin/activate ]; then
253 253
         source /var/lib/matrix/.synapse/bin/activate
254 254
     fi
255
-    register_new_matrix_user -c ${MATRIX_DATA_DIR}/homeserver.yaml https://${DEFAULT_DOMAIN_NAME}/matrix -u "${new_username}" -p "${new_user_password}" -a
256
-    if [ ! "$?" = "0" ]; then
257
-        echo '1'
258
-    else
259
-        echo "0"
260
-    fi
255
+    register_new_matrix_user -c ${MATRIX_DATA_DIR}/homeserver.yaml -u "${new_username}" -p "${new_user_password}" -a
256
+    echo "0"
261 257
 }
262 258
 
263 259
 function install_interactive_matrix {