build: bbb-webhooks set secret and url
This commit is contained in:
parent
575131a20b
commit
f42dcbbd7e
@ -9,8 +9,8 @@ case "$1" in
|
|||||||
chmod 644 $TARGET
|
chmod 644 $TARGET
|
||||||
chown bigbluebutton:bigbluebutton $TARGET
|
chown bigbluebutton:bigbluebutton $TARGET
|
||||||
|
|
||||||
BBB_SECRET=$(cat $SERVLET_DIR/WEB-INF/classes/bigbluebutton.properties | grep securitySalt | cut -d= -f2)
|
BBB_HOST=$(bbb-conf --secret | grep -F URL: | sed 's#^.*://##; s#/.*##')
|
||||||
BBB_HOST=$(cat $SERVLET_DIR/WEB-INF/classes/bigbluebutton.properties | sed -n '/^bigbluebutton.web.serverURL/{s/.*\///;p}')
|
BBB_SECRET=$(bbb-conf --secret | grep -F Secret: | sed 's/.*Secret: //')
|
||||||
|
|
||||||
yq w -i $TARGET bbb.sharedSecret "$BBB_SECRET"
|
yq w -i $TARGET bbb.sharedSecret "$BBB_SECRET"
|
||||||
yq w -i $TARGET bbb.serverDomain "$BBB_HOST"
|
yq w -i $TARGET bbb.serverDomain "$BBB_HOST"
|
||||||
|
Loading…
Reference in New Issue
Block a user