Skip to content

Commit

Permalink
Merge pull request bigbluebutton#8715 from fcecagno/fix-gstreamer-pac…
Browse files Browse the repository at this point in the history
…kages

Force update gstreamer packages
  • Loading branch information
ritzalam authored Mar 6, 2020
2 parents 93dca1b + 8e43acd commit 26bb054
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions bigbluebutton-config/bin/bbb-conf
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,23 @@ check_configuration() {
fi
fi

# due to a change in the kurento packages naming convention, gstreamer packages don't naturally upgrade
# this snippet checks if the installed gstreamer packages are the same as the one available in the repository
# if they are not, it will update (possibly downgrade)
# TODO remove it on 2.3 or above
if [ "$DISTRIB_CODENAME" == "xenial" ]; then
DOWNGRADE_LIST=""
for PACKAGE in $(dpkg -l | grep gst | tr -s ' ' | cut -d' ' -f2 | cut -d':' -f1); do
RIGHT_VERSION=$(apt-cache policy $PACKAGE | grep -B1 ubuntu.bigbluebutton.org | head -n1 | tr -s ' ' | cut -d' ' -f2)
if [[ $RIGHT_VERSION != "***" ]] && [[ $RIGHT_VERSION != "" ]]; then
echo "Force $PACKAGE to version $RIGHT_VERSION"
DOWNGRADE_LIST="$PACKAGE=$RIGHT_VERSION $DOWNGRADE_LIST"
fi
done
if [[ $DOWNGRADE_LIST != "" ]]; then
apt-get -y install $DOWNGRADE_LIST > /dev/null
fi
fi
}


Expand Down

0 comments on commit 26bb054

Please sign in to comment.