Skip to content

Commit 75a9eba

Browse files
keep prosody&jigasi user registration
1 parent 2d48b2f commit 75a9eba

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

prosody/rootfs/usr/bin/init_jitsi_prosody

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ if [[ "$JVB_AUTH_PASSWORD" == "$OLD_JVB_AUTH_PASSWORD" ]]; then
103103
exit 1
104104
fi
105105

106+
# we see the next register command to hang from time to time, suspect it's a race with mod_roster_command
107+
# Once this is released: https://issues.prosody.im/1908 we can remove this sleep and make sure prosody is running
108+
# and then use 'prosodyctl shell user create' to add user live and 'prosodyctl shell roster' to modify their roster live.
109+
sleep 1
110+
111+
prosodyctl --config $PROSODY_CFG register $JVB_AUTH_USER $XMPP_AUTH_DOMAIN $JVB_AUTH_PASSWORD
112+
106113
if [[ ! -z $JIBRI_XMPP_PASSWORD ]]; then
107114
echo "Configuring Jibri auth"
108115
OLD_JIBRI_XMPP_PASSWORD=passw0rd
@@ -121,6 +128,13 @@ if [[ "$PROSODY_MODE" == "client" ]]; then
121128
echo 'FATAL ERROR: Jibri recorder password must be changed, check the README'
122129
exit 1
123130
fi
131+
prosodyctl --config $PROSODY_CFG register $JIBRI_RECORDER_USER $XMPP_HIDDEN_DOMAIN $JIBRI_RECORDER_PASSWORD
132+
fi
133+
if [[ "$(echo "$ENABLE_TRANSCRIPTIONS" | tr '[:upper:]' '[:lower:]')" == "true" ]] || [[ "$ENABLE_TRANSCRIPTIONS" == "1" ]]; then
134+
if [[ ! -z $JIGASI_TRANSCRIBER_PASSWORD ]]; then
135+
[ -z "$JIGASI_TRANSCRIBER_USER" ] && JIGASI_TRANSCRIBER_USER="transcriber"
136+
prosodyctl --config $PROSODY_CFG register $JIGASI_TRANSCRIBER_USER $XMPP_HIDDEN_DOMAIN $JIGASI_TRANSCRIBER_PASSWORD
137+
fi
124138
fi
125139
fi
126140

0 commit comments

Comments
 (0)