From 85e6237f98110ab571f58cf1bfe1b76d16caee02 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Fri, 11 Dec 2020 02:14:47 -0600 Subject: [PATCH] Fix function and services --- add-jvb2-node.sh | 6 +++--- quick_jibri_installer.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/add-jvb2-node.sh b/add-jvb2-node.sh index 3c4a3e3..cc91447 100644 --- a/add-jvb2-node.sh +++ b/add-jvb2-node.sh @@ -267,7 +267,7 @@ org.jitsi.videobridge.xmpp.user.shard.MUC_NICKNAME=jvb2-$ADDUP JVB2_SIP echo -e "\n---- Create random nodesync user ----" -useradd -m -g jvb $NJN_USER +useradd -m -g jitsi $NJN_USER echo "$NJN_USER:$NJN_USER_PASS" | chpasswd echo -e "\n---- We'll connect to main server ----" @@ -284,8 +284,8 @@ sed -i "$(var_dlim 0_LAST),$(var_dlim 1_LAST){s|LETS: .*|LETS: $(date -R)|}" add echo "Last file edition at: $(grep "LETS:" add-jvb2-node.sh|head -n1|awk -F'LETS:' '{print$2}')" #Enable jvb2 services -systemctl enable jvb2 -systemctl restart jvb2 +systemctl enable jitsi-videobridge2.service +systemctl restart jitsi-videobridge2.service echo -e "\nSending updated add-jvb2-node.sh file to main server sync user...\n" cp $PWD/add-jvb2-node.sh /tmp diff --git a/quick_jibri_installer.sh b/quick_jibri_installer.sh index c9c9932..7903dee 100644 --- a/quick_jibri_installer.sh +++ b/quick_jibri_installer.sh @@ -871,7 +871,7 @@ JVB_OPTS=$(g_conf_value JVB_OPTS=) JAVA_SYS_PROPS=$(g_conf_value JAVA_SYS_PROPS=) g_sip_value() { - grep "$1" $JVB2_SIP|sed "s|$1||" + grep "$1" $JVB2_SIP |cut -d "=" -f2 } DISABLE_AWS_HARVESTER=$(g_sip_value DISABLE_AWS_HARVESTER=) STUN_MAPPING_HARVESTER_ADDRESSES=$(g_sip_value STUN_MAPPING_HARVESTER_ADDRESSES=)