|
@@ -151,6 +151,12 @@ case "$1" in
|
151
|
151
|
PROSODY_CONFIG_PRESENT="false"
|
152
|
152
|
fi
|
153
|
153
|
|
|
154
|
+ # Updates main muc component
|
|
155
|
+ MAIN_MUC_PATTERN="Component \"conference.$JVB_HOSTNAME\" \"muc\""
|
|
156
|
+ if ! grep -A 2 -- "${MAIN_MUC_PATTERN}" $PROSODY_HOST_CONFIG | grep -q "restrict_room_creation" ;then
|
|
157
|
+ sed -i "s/${MAIN_MUC_PATTERN}/${MAIN_MUC_PATTERN}\n restrict_room_creation = true/g" $PROSODY_HOST_CONFIG
|
|
158
|
+ fi
|
|
159
|
+
|
154
|
160
|
# Make sure the focus@auth user's roster includes the proxy component (this is idempotent)
|
155
|
161
|
prosodyctl mod_roster_command subscribe focus.$JVB_HOSTNAME $JICOFO_AUTH_USER@auth.$JVB_HOSTNAME
|
156
|
162
|
|