|
@@ -290,7 +290,11 @@ function add_user_matrix {
|
290
|
290
|
|
291
|
291
|
${PROJECT_NAME}-pass -u $new_username -a matrix -p "$new_user_password"
|
292
|
292
|
|
293
|
|
- retval=$(register_new_matrix_user -c ${MATRIX_DATA_DIR}/homeserver.yaml -u "${new_username}" -p "${new_user_password}" -a)
|
|
293
|
+ if [[ $ONION_ONLY == 'no' ]]; then
|
|
294
|
+ retval=$(register_new_matrix_user -c ${MATRIX_DATA_DIR}/homeserver.yaml -u "${new_username}" -p "${new_user_password}" -a https://${DEFAULT_DOMAIN_NAME}:${MATRIX_HTTP_PORT})
|
|
295
|
+ else
|
|
296
|
+ retval=$(register_new_matrix_user -c ${MATRIX_DATA_DIR}/homeserver.yaml -u "${new_username}" -p "${new_user_password}" -a http://${DEFAULT_DOMAIN_NAME}:${MATRIX_HTTP_PORT})
|
|
297
|
+ fi
|
294
|
298
|
echo "0"
|
295
|
299
|
}
|
296
|
300
|
|