From 1d31efe33de23f0126bec7f7778356ec60996f7e Mon Sep 17 00:00:00 2001 From: hex-m <hex-m@runbox.com> Date: Tue, 6 Apr 2021 17:04:17 +0200 Subject: [PATCH] Handle multiple default routes in bbb-conf This is the same fix that was made in bbb-install: https://github.com/bigbluebutton/bbb-install/pull/327/ Fix https://github.com/bigbluebutton/bigbluebutton/issues/11452 --- bigbluebutton-config/bin/bbb-conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigbluebutton-config/bin/bbb-conf b/bigbluebutton-config/bin/bbb-conf index e819476cde..442d044b42 100755 --- a/bigbluebutton-config/bin/bbb-conf +++ b/bigbluebutton-config/bin/bbb-conf @@ -199,7 +199,7 @@ fi if LANG=c ifconfig | grep -q 'venet0:0'; then IP=$(ifconfig | grep -v '127.0.0.1' | grep -E "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" | tail -1 | cut -d: -f2 | awk '{ print $1}') else - IP=$(ifconfig $(route | grep ^default | sed "s/.* //") | awk '/inet /{ print $2}' | cut -d: -f2) + IP=$(ifconfig $(route | grep ^default | head -1 | sed "s/.* //") | awk '/inet /{ print $2}' | cut -d: -f2) fi if [ -z "$IP" ]; then -- GitLab