Skip to content

Commit

Permalink
Merge pull request #676 from antobinary/26-with-nodejs-java-bump
Browse files Browse the repository at this point in the history
Upgrade NodeJS and Java on BBB 2.6
  • Loading branch information
ffdixon authored Aug 31, 2023
2 parents 2a58d62 + 85687d7 commit 958a3be
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bbb-install-2.6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -291,16 +291,16 @@ main() {

rm -rf /etc/apt/sources.list.d/kurento.list # Kurento 6.15 now packaged with 2.3

if [ -f /etc/apt/sources.list.d/nodesource.list ] && grep -q 12 /etc/apt/sources.list.d/nodesource.list; then
# Node 12 might be installed, previously used in BigBlueButton
if [ -f /etc/apt/sources.list.d/nodesource.list ] && grep -q 16 /etc/apt/sources.list.d/nodesource.list; then
# Node 16 might be installed, previously used in BigBlueButton
sudo apt-get purge nodejs
sudo rm -r /etc/apt/sources.list.d/nodesource.list
fi
if [ ! -f /etc/apt/sources.list.d/nodesource.list ]; then
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
fi
if ! apt-cache madison nodejs | grep -q node_16; then
err "Did not detect nodejs 16.x candidate for installation"
if ! apt-cache madison nodejs | grep -q node_18; then
err "Did not detect nodejs 18.x candidate for installation"
fi
if ! apt-key list MongoDB | grep -q 4.4; then
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
Expand All @@ -315,8 +315,8 @@ main() {

BBB_WEB_ETC_CONFIG=/etc/bigbluebutton/bbb-web.properties # Override file for local settings

need_pkg openjdk-11-jre
update-java-alternatives -s java-1.11.0-openjdk-amd64
need_pkg openjdk-17-jre
update-java-alternatives -s java-1.17.0-openjdk-amd64

# Remove old bbb-demo if installed from a previous 2.5 setup
if dpkg -s bbb-demo > /dev/null 2>&1; then
Expand Down

0 comments on commit 958a3be

Please sign in to comment.