File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,13 @@ if [[ "$JVB_AUTH_PASSWORD" == "$OLD_JVB_AUTH_PASSWORD" ]]; then
103103 exit 1
104104fi
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+
106113if [[ ! -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
125139fi
126140
You can’t perform that action at this time.
0 commit comments