[jitsi] Register extra JVBs in startservice_jitsi, clean up a little

This commit is contained in:
Bernhard "bero" Rosenkränzer (Boggins) 2024-11-25 21:59:30 +01:00
parent e28b711b2c
commit 99ed16f870

View File

@ -17,28 +17,31 @@ startservice_jitsi() {
fi
if [ -z "$ALERTS_EMAIL" ]; then
spin &
SPINPID=$!
NC_COMMAND=`grep "$JITSI_IP" /federated/lib/$SERVICE.sh | awk -F\" '{ print $4 }'`
RETRY=`grep "$JITSI_IP" /federated/lib/jitsi.sh | awk -F\" '{ print $6 }'`
start_service_withalert "jitsi" "$NC_COMMAND" "$RETRY" "no"
disown $SPINPID &> /dev/null
kill -9 $SPINPID &> /dev/null
echo -ne "done."
AE=no
S=jitsi
else
spin &
SPINPID=$!
NC_COMMAND=`grep "$JITSI_IP" /federated/lib/$SERVICE.sh | awk -F\" '{ print $4 }'`
RETRY=`grep "$JITSI_IP" /federated/lib/jitsi.sh | awk -F\" '{ print $6 }'`
start_service_withalert "$SERVICE" "$NC_COMMAND" "$RETRY" "yes"
disown $SPINPID &> /dev/null
kill -9 $SPINPID &> /dev/null
echo -ne "done."
AE=yes
S="$SERVICE"
fi
spin &
SPINPID=$!
NC_COMMAND=`grep "$JITSI_IP" /federated/lib/$SERVICE.sh | awk -F\" '{ print $4 }'`
RETRY=`grep "$JITSI_IP" /federated/lib/jitsi.sh | awk -F\" '{ print $6 }'`
start_service_withalert "$S" "$NC_COMMAND" "$RETRY" "$AE"
disown $SPINPID &> /dev/null
kill -9 $SPINPID &> /dev/null
# Allow multiple JVBs to connect
if [ "$JITSI_SCALE" = "client" ]; then
for i in $(seq 1 10); do
docker exec -ti jitsi-prosody-1 prosodyctl --config /config/prosody.cfg.lua register jvb$i auth.jitsiscale.federated.computer J17515cAl3-jvb
done
fi
echo -ne "done."
}
startservice() {
echo -ne "* Starting $SERVICE.."