forked from switnet/quick-jibri-installer
Fix function and services
This commit is contained in:
parent
30e692d6ce
commit
85e6237f98
|
@ -267,7 +267,7 @@ org.jitsi.videobridge.xmpp.user.shard.MUC_NICKNAME=jvb2-$ADDUP
|
||||||
JVB2_SIP
|
JVB2_SIP
|
||||||
|
|
||||||
echo -e "\n---- Create random nodesync user ----"
|
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 "$NJN_USER:$NJN_USER_PASS" | chpasswd
|
||||||
|
|
||||||
echo -e "\n---- We'll connect to main server ----"
|
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}')"
|
echo "Last file edition at: $(grep "LETS:" add-jvb2-node.sh|head -n1|awk -F'LETS:' '{print$2}')"
|
||||||
|
|
||||||
#Enable jvb2 services
|
#Enable jvb2 services
|
||||||
systemctl enable jvb2
|
systemctl enable jitsi-videobridge2.service
|
||||||
systemctl restart jvb2
|
systemctl restart jitsi-videobridge2.service
|
||||||
|
|
||||||
echo -e "\nSending updated add-jvb2-node.sh file to main server sync user...\n"
|
echo -e "\nSending updated add-jvb2-node.sh file to main server sync user...\n"
|
||||||
cp $PWD/add-jvb2-node.sh /tmp
|
cp $PWD/add-jvb2-node.sh /tmp
|
||||||
|
|
|
@ -871,7 +871,7 @@ JVB_OPTS=$(g_conf_value JVB_OPTS=)
|
||||||
JAVA_SYS_PROPS=$(g_conf_value JAVA_SYS_PROPS=)
|
JAVA_SYS_PROPS=$(g_conf_value JAVA_SYS_PROPS=)
|
||||||
|
|
||||||
g_sip_value() {
|
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=)
|
DISABLE_AWS_HARVESTER=$(g_sip_value DISABLE_AWS_HARVESTER=)
|
||||||
STUN_MAPPING_HARVESTER_ADDRESSES=$(g_sip_value STUN_MAPPING_HARVESTER_ADDRESSES=)
|
STUN_MAPPING_HARVESTER_ADDRESSES=$(g_sip_value STUN_MAPPING_HARVESTER_ADDRESSES=)
|
||||||
|
|
Loading…
Reference in New Issue