diff --git a/build/packages-template/bbb-config/after-install.sh b/build/packages-template/bbb-config/after-install.sh index d2a223d872..ec450f49eb 100644 --- a/build/packages-template/bbb-config/after-install.sh +++ b/build/packages-template/bbb-config/after-install.sh @@ -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