From 07f7054bad786664e35944788c142488e0fc2ee1 Mon Sep 17 00:00:00 2001 From: Oana Emilia Ianc Date: Tue, 10 Jan 2023 12:10:19 +0200 Subject: [PATCH] jaas: pass the jitsi installation type at provisioning (#1456) --- web/rootfs/etc/services.d/jaas-account/run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/rootfs/etc/services.d/jaas-account/run b/web/rootfs/etc/services.d/jaas-account/run index c20c5af..dcb85cc 100644 --- a/web/rootfs/etc/services.d/jaas-account/run +++ b/web/rootfs/etc/services.d/jaas-account/run @@ -5,6 +5,7 @@ set -e EMAIL=$LETSENCRYPT_EMAIL DOMAIN=$LETSENCRYPT_DOMAIN +JITSI_INSTALLATION="DOCKER" JAAS_ENDPOINT="https://account-provisioning.cloudflare.jitsi.net/operations" CHALLENGE_DIR="/usr/share/jitsi-meet/.well-known" CHALLENGE_FILE="$CHALLENGE_DIR/jitsi-challenge.txt" @@ -47,7 +48,7 @@ while $KEEP_WAITING; do done create_error=0 -create_data=$(curl -s -f -X 'POST' "${JAAS_ENDPOINT}" -H 'Content-Type: application/json' -H 'accept: */*' -d "{ \"domain\": \"${DOMAIN}\", \"email\": \"${EMAIL}\" }") || create_error=$? +create_data=$(curl -s -f -X 'POST' "${JAAS_ENDPOINT}" -H 'Content-Type: application/json' -H 'accept: */*' -d "{ \"domain\": \"${DOMAIN}\", \"email\": \"${EMAIL}\", \"jitsiInstallation\": \"${JITSI_INSTALLATION}\" }") || create_error=$? if [ ${create_error} -ne 0 ]; then echo "JaaS account creation failed. Status: ${create_error}, response: ${create_data}" stop_service