Minor refactoring of propagating new version
This commit is contained in:
parent
fe7a2d6c7f
commit
ef6eb21cce
@ -128,12 +128,10 @@ 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
|
||||
if [ -f $BBB_RELEASE_FILE ] && [ -f $BBB_HTML5_SETTINGS_FILE ]; then
|
||||
BBB_FULL_VERSION=$(cat $BBB_RELEASE_FILE | sed -n '/^BIGBLUEBUTTON_RELEASE/{s/.*=//;p}' | tail -n 1)
|
||||
echo "setting public.app.bbbServerVersion: $BBB_FULL_VERSION in $BBB_HTML5_SETTINGS_FILE "
|
||||
yq w -i $BBB_HTML5_SETTINGS_FILE public.app.bbbServerVersion $BBB_FULL_VERSION
|
||||
fi
|
||||
|
||||
# Fix permissions for logging
|
||||
|
@ -38,13 +38,12 @@ 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
|
||||
if [ -f $BBB_RELEASE_FILE ] && [ -f $BBB_HTML5_SETTINGS_FILE ]; then
|
||||
BBB_FULL_VERSION=$(cat $BBB_RELEASE_FILE | sed -n '/^BIGBLUEBUTTON_RELEASE/{s/.*=//;p}' | tail -n 1)
|
||||
echo "setting public.app.bbbServerVersion: $BBB_FULL_VERSION in $BBB_HTML5_SETTINGS_FILE "
|
||||
yq w -i $BBB_HTML5_SETTINGS_FILE public.app.bbbServerVersion $BBB_FULL_VERSION
|
||||
fi
|
||||
|
||||
|
||||
# Remove old overrides
|
||||
if [ -f /etc/systemd/system/mongod.service.d/override-mongo.conf ] \
|
||||
|
Loading…
Reference in New Issue
Block a user