diff --git a/playbooks/roles/matrix-gerritbot/README.rst b/playbooks/roles/matrix-gerritbot/README.rst index 2983cf2f10..991bb48eb4 100644 --- a/playbooks/roles/matrix-gerritbot/README.rst +++ b/playbooks/roles/matrix-gerritbot/README.rst @@ -32,3 +32,11 @@ Create the *gerritbot_matrix_identity_token* with this command: export MATRIX_IDENTITY_TOKEN=$(curl -XPOST ${IDENTITY_URL}/_matrix/identity/v2/account/register -d "${MATRIX_OPENID}" | jq -r '.access_token') echo "gerritbot_matrix_identity_token: ${MATRIX_IDENTITY_TOKEN}" + +You might need to accept matrix terms: + +.. code-block:: + + curl -H "Authorization: Bearer ${MATRIX_IDENTITY_TOKEN}" ${IDENTITY_URL}/_matrix/identity/v2/terms + curl -XPOST ${IDENTITY_URL}/_matrix/identity/v2/terms -H "Authorization: Bearer ${MATRIX_IDENTITY_TOKEN}" -d \ + '{"user_accepts": ["https://matrix.org/legal/identity-server-privacy-notice-1"]}'