From a8d167e22fc825020ed3599550d9fed92e410adc Mon Sep 17 00:00:00 2001 From: Ark74 Date: Sat, 3 Oct 2020 00:21:20 -0500 Subject: [PATCH] Improve config upgrader for aditional jibri nodes --- tools/jibri-conf-upgrade.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/jibri-conf-upgrade.sh b/tools/jibri-conf-upgrade.sh index 5a75039..b8bbea9 100644 --- a/tools/jibri-conf-upgrade.sh +++ b/tools/jibri-conf-upgrade.sh @@ -93,6 +93,7 @@ if [ -f $CONF_JSON ]; then 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) + JB_NICKN=$(jq .xmpp_environments[0].control_muc.nickname $CONF_JSON|cut -d '"' -f2) else echo "Can't find the instance config.json file, exiting..." exit @@ -106,6 +107,7 @@ if [ "$MODE" = "debug" ]; then echo "$JB_NAME" echo "$JB_AUTH_PASS" echo "$JB_REC_PASS" +echo "$JB_NICKN" fi #Backup and setup new conf file @@ -138,7 +140,7 @@ jibri { control-muc { domain = "internal.auth.$DOMAIN" room-name = "$JibriBrewery" - nickname = "Live" + nickname = "$JB_NICKN" } // The login information for the control MUC