From 2915176b2e4c19478a7cbd9ecd1caada4f8171fe Mon Sep 17 00:00:00 2001 From: Aaron van Meerten Date: Wed, 3 Jan 2024 12:36:46 -0600 Subject: [PATCH] prosody: skip recorder account unless in client mode * prosody: skip recorder account unless in client mode --- prosody/rootfs/etc/cont-init.d/10-config | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/prosody/rootfs/etc/cont-init.d/10-config b/prosody/rootfs/etc/cont-init.d/10-config index b55196f..2f3b138 100644 --- a/prosody/rootfs/etc/cont-init.d/10-config +++ b/prosody/rootfs/etc/cont-init.d/10-config @@ -105,13 +105,15 @@ if [[ ! -z $JIBRI_XMPP_PASSWORD ]]; then prosodyctl --config $PROSODY_CFG register $JIBRI_XMPP_USER $XMPP_AUTH_DOMAIN $JIBRI_XMPP_PASSWORD fi -if [[ ! -z $JIBRI_RECORDER_PASSWORD ]]; then - OLD_JIBRI_RECORDER_PASSWORD=passw0rd - if [[ "$JIBRI_RECORDER_PASSWORD" == "$OLD_JIBRI_RECORDER_PASSWORD" ]]; then - echo 'FATAL ERROR: Jibri recorder password must be changed, check the README' - exit 1 +if [[ "$PROSODY_MODE" == "client" ]]; then + if [[ ! -z $JIBRI_RECORDER_PASSWORD ]]; then + OLD_JIBRI_RECORDER_PASSWORD=passw0rd + if [[ "$JIBRI_RECORDER_PASSWORD" == "$OLD_JIBRI_RECORDER_PASSWORD" ]]; then + echo 'FATAL ERROR: Jibri recorder password must be changed, check the README' + exit 1 + fi + prosodyctl --config $PROSODY_CFG register $JIBRI_RECORDER_USER $XMPP_RECORDER_DOMAIN $JIBRI_RECORDER_PASSWORD fi - prosodyctl --config $PROSODY_CFG register $JIBRI_RECORDER_USER $XMPP_RECORDER_DOMAIN $JIBRI_RECORDER_PASSWORD fi if [[ ! -z $JIGASI_XMPP_PASSWORD ]]; then