16 lines
429 B
Bash
Executable File
16 lines
429 B
Bash
Executable File
#!/bin/sh -eu
|
|
|
|
JICOFO="/usr/share/jicofo/jicofo.sh"
|
|
VIDEOBRIDGE="/usr/share/jitsi-videobridge/lib/videobridge.rc"
|
|
|
|
if [ -f "${JICOFO:?}" ]; then
|
|
jicofo_memory="$(grep JICOFO_MAX_MEMORY= "${JICOFO:?}" | cut -d= -f 2 | cut -d ";" -f 1)"
|
|
fi
|
|
if [ -f "${VIDEOBRIDGE:?}" ]; then
|
|
vb_memory="$(grep VIDEOBRIDGE_MAX_MEMORY= "${VIDEOBRIDGE:?}" | cut -d= -f 2)"
|
|
fi
|
|
cat <<EOF
|
|
jicofo ${jicofo_memory:-n/a}
|
|
videobridge ${vb_memory:-n/a}
|
|
EOF
|