Merge pull request #18789 from antobinary/docs27

build: bbb-webhooks set secret and url
This commit is contained in:
Anton Georgiev 2023-09-15 10:23:50 -04:00 committed by GitHub
commit 3a58ce4c9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,8 +9,8 @@ case "$1" in
chmod 644 $TARGET
chown bigbluebutton:bigbluebutton $TARGET
BBB_SECRET=$(cat $SERVLET_DIR/WEB-INF/classes/bigbluebutton.properties | grep securitySalt | cut -d= -f2)
BBB_HOST=$(cat $SERVLET_DIR/WEB-INF/classes/bigbluebutton.properties | sed -n '/^bigbluebutton.web.serverURL/{s/.*\///;p}')
BBB_HOST=$(bbb-conf --secret | grep -F URL: | sed 's#^.*://##; s#/.*##')
BBB_SECRET=$(bbb-conf --secret | grep -F Secret: | sed 's/.*Secret: //')
yq w -i $TARGET bbb.sharedSecret "$BBB_SECRET"
yq w -i $TARGET bbb.serverDomain "$BBB_HOST"