Merge pull request #15006 from antobinary/set-version
build: set html5 client version on bbb-config update
This commit is contained in:
commit
d684f3354a
@ -125,6 +125,17 @@ else
|
|||||||
sed -i 's/events {/worker_rlimit_nofile 10000;\n\nevents {/g' /etc/nginx/nginx.conf
|
sed -i 's/events {/worker_rlimit_nofile 10000;\n\nevents {/g' /etc/nginx/nginx.conf
|
||||||
fi
|
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
|
# Fix permissions for logging
|
||||||
chown bigbluebutton:bigbluebutton /var/log/bbb-fsesl-akka
|
chown bigbluebutton:bigbluebutton /var/log/bbb-fsesl-akka
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user