Skip to content

Commit b4936d5

Browse files
committed
switch from mikefarah yq to kislyuk yq (default in ubuntu 24)
1 parent 454da09 commit b4936d5

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

bbb-install.sh

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,7 @@ main() {
286286
if [ "$DISTRO" == "noble" ]; then
287287
need_pkg ca-certificates
288288

289-
YQ_VERSION="v4.16.2" # TODO - push the assets from the original repo/release into our fork so we can wget from bbb/yq
290-
YQ_BINARY="yq_linux_amd64"
291-
sudo wget -O /usr/local/bin/yq \
292-
"https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/${YQ_BINARY}"
293-
sudo chmod +x /usr/local/bin/yq
294-
say "--------------------------------------"
289+
need_pkg yq
295290
yq --version
296291

297292
#need_ppa libreoffice-ubuntu-ppa-noble.list ppa:libreoffice/ppa 1378B444 # Latest version of libreoffice
@@ -1767,7 +1762,7 @@ fi
17671762
sed -i "s/proxy_pass .*/proxy_pass https:\/\/$IP:7443;/g" /usr/share/bigbluebutton/nginx/sip.nginx
17681763
else
17691764
# Use nginx as proxy for WSS -> WS (see https://github.com/bigbluebutton/bigbluebutton/issues/9667)
1770-
yq e -i '.public.media.sipjsHackViaWs = true' /etc/bigbluebutton/bbb-html5.yml
1765+
yq -y -i '.public.media.sipjsHackViaWs = true' /etc/bigbluebutton/bbb-html5.yml
17711766
sed -i "s/proxy_pass .*/proxy_pass http:\/\/$IP:5066;/g" /usr/share/bigbluebutton/nginx/sip.nginx
17721767
xmlstarlet edit --inplace --update '//param[@name="ws-binding"]/@value' --value "$IP:5066" /opt/freeswitch/conf/sip_profiles/external.xml
17731768
fi
@@ -1777,7 +1772,7 @@ fi
17771772
sed -i 's/^bigbluebutton.web.serverURL=http:/bigbluebutton.web.serverURL=https:/g' "$BBB_WEB_ETC_CONFIG"
17781773
fi
17791774

1780-
yq e -i '.playback_protocol = "https"' /usr/local/bigbluebutton/core/scripts/bigbluebutton.yml
1775+
yq -y -i '.playback_protocol = "https"' /usr/local/bigbluebutton/core/scripts/bigbluebutton.yml
17811776
chmod 644 /usr/local/bigbluebutton/core/scripts/bigbluebutton.yml
17821777

17831778
# Update Greenlight (if installed) to use SSL
@@ -1799,29 +1794,29 @@ fi
17991794
TARGET=/etc/bigbluebutton/bbb-webrtc-sfu/production.yml
18001795
touch $TARGET
18011796

1802-
yq e -i ".freeswitch.ip = \"$IP\"" $TARGET
1797+
yq -y -i ".freeswitch.ip = \"$IP\"" $TARGET
18031798

18041799
if [[ $BIGBLUEBUTTON_RELEASE == 2.2.* ]] && [[ ${BIGBLUEBUTTON_RELEASE#*.*.} -lt 29 ]]; then
18051800
if [ -n "$INTERNAL_IP" ]; then
1806-
yq e -i ".freeswitch.sip_ip = \"$INTERNAL_IP\"" $TARGET
1801+
yq -y -i ".freeswitch.sip_ip = \"$INTERNAL_IP\"" $TARGET
18071802
else
1808-
yq e -i ".freeswitch.sip_ip = \"$IP\"" $TARGET
1803+
yq -y -i ".freeswitch.sip_ip = \"$IP\"" $TARGET
18091804
fi
18101805
else
18111806
# Use nginx as proxy for WSS -> WS (see https://github.com/bigbluebutton/bigbluebutton/issues/9667)
1812-
yq e -i ".freeswitch.sip_ip = \"$IP\"" $TARGET
1807+
yq -y -i ".freeswitch.sip_ip = \"$IP\"" $TARGET
18131808
fi
18141809
chown bigbluebutton:bigbluebutton $TARGET
18151810
chmod 644 $TARGET
18161811

18171812
# Configure mediasoup IPs, reference: https://raw.githubusercontent.com/bigbluebutton/bbb-webrtc-sfu/v2.7.2/docs/mediasoup.md
18181813
# mediasoup IPs: WebRTC
1819-
yq e -i '.mediasoup.webrtc.listenIps[0].ip = "0.0.0.0"' $TARGET
1820-
yq e -i ".mediasoup.webrtc.listenIps[0].announcedIp = \"$IP\"" $TARGET
1814+
yq -y -i '.mediasoup.webrtc.listenIps[0].ip = "0.0.0.0"' $TARGET
1815+
yq -y -i ".mediasoup.webrtc.listenIps[0].announcedIp = \"$IP\"" $TARGET
18211816

18221817
# mediasoup IPs: plain RTP (internal comms, FS <-> mediasoup)
1823-
yq e -i '.mediasoup.plainRtp.listenIp.ip = "0.0.0.0"' $TARGET
1824-
yq e -i ".mediasoup.plainRtp.listenIp.announcedIp = \"$IP\"" $TARGET
1818+
yq -y -i '.mediasoup.plainRtp.listenIp.ip = "0.0.0.0"' $TARGET
1819+
yq -y -i ".mediasoup.plainRtp.listenIp.announcedIp = \"$IP\"" $TARGET
18251820

18261821
systemctl reload nginx
18271822
}

0 commit comments

Comments
 (0)