From efdaf46d08ceb81ccc2658640d95973f90b70c21 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Mon, 4 Aug 2025 13:27:31 +0200 Subject: [PATCH] fix(service): matrix entrypoint - make sure registration is enabled not just non empty - make sure RECAPTCHA_PUBLIC_KEY is set when adding the recaptcha block --- templates/compose/matrix.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/compose/matrix.yaml b/templates/compose/matrix.yaml index 99232967e..efaf505c2 100644 --- a/templates/compose/matrix.yaml +++ b/templates/compose/matrix.yaml @@ -89,14 +89,14 @@ services: # # ######################## - test -n "${ENABLE_REGISTRATION}" && ! grep "#registration" /data/homeserver.yaml &>/dev/null \ + [ "${ENABLE_REGISTRATION}" = "true" ] && ! grep "#registration" /data/homeserver.yaml &>/dev/null \ && echo >> /data/homeserver.yaml \ && cat <> /data/homeserver.yaml #registration enable_registration: true # Allows users to register on your server. EOF - ! grep ${RECAPTCHA_PUBLIC_KEY} /data/homeserver.yaml &>/dev/null \ + [ -n "${RECAPTCHA_PUBLIC_KEY}" ] && ! grep "${RECAPTCHA_PUBLIC_KEY}" /data/homeserver.yaml &>/dev/null \ && echo >> /data/homeserver.yaml \ && cat <> /data/homeserver.yaml # reCAPTCHA settings