From 9a03815572f82a383633460aefaf8efd780ebbd1 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Sat, 3 Oct 2020 00:40:29 -0500 Subject: [PATCH] Fix jibri node conf upgrade --- tools/jibri-conf-upgrade.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/jibri-conf-upgrade.sh b/tools/jibri-conf-upgrade.sh index b8bbea9..0f93920 100644 --- a/tools/jibri-conf-upgrade.sh +++ b/tools/jibri-conf-upgrade.sh @@ -90,6 +90,9 @@ fi #Read missing variables if [ -f $CONF_JSON ]; then echo "Reading current config.json file..." + if [ -z $DOMAIN ]; then + DOMAIN=$(jq .xmpp_environments[0].xmpp_domain $CONF_JSON|cut -d '"' -f2) + fi JB_NAME=$(jq .xmpp_environments[0].name $CONF_JSON|cut -d '"' -f2) JB_AUTH_PASS=$(jq .xmpp_environments[0].control_login.password $CONF_JSON|cut -d '"' -f2) JB_REC_PASS=$(jq .xmpp_environments[0].call_login.password $CONF_JSON|cut -d '"' -f2) @@ -100,11 +103,14 @@ else fi check_read_vars "Jibri Name" $JB_NAME +check_read_vars "(Main server) Domain" $DOMAIN check_read_vars "Control login passwd" $JB_AUTH_PASS check_read_vars "Call login passwd" $JB_REC_PASS +check_read_vars "Jibri Node nickname" $JB_NICKN if [ "$MODE" = "debug" ]; then echo "$JB_NAME" +echo "$DOMAIN" echo "$JB_AUTH_PASS" echo "$JB_REC_PASS" echo "$JB_NICKN"