Merge pull request #15006 from antobinary/set-version

build: set html5 client version on bbb-config update
This commit is contained in:
Anton Georgiev 2022-05-13 09:57:36 -04:00 committed by GitHub
commit d684f3354a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,6 +125,17 @@ else
sed -i 's/events {/worker_rlimit_nofile 10000;\n\nevents {/g' /etc/nginx/nginx.conf
fi
# set full BBB version in settings.yml so it can be displayed in the client
BBB_RELEASE_FILE=/etc/bigbluebutton/bigbluebutton-release
BBB_HTML5_SETTINGS_FILE=/usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml
if [[ -f $BBB_RELEASE_FILE ]] ; then
BBB_FULL_VERSION=$(cat $BBB_RELEASE_FILE | sed -n '/^BIGBLUEBUTTON_RELEASE/{s/.*=//;p}' )
echo "setting BBB_FULL_VERSION=$BBB_FULL_VERSION in $BBB_HTML5_SETTINGS_FILE "
if [[ -f $BBB_HTML5_SETTINGS_FILE ]] ; then
yq w -i $BBB_HTML5_SETTINGS_FILE public.app.bbbServerVersion $BBB_FULL_VERSION
fi
fi
# Fix permissions for logging
chown bigbluebutton:bigbluebutton /var/log/bbb-fsesl-akka