parent
991f695275
commit
b277926332
@ -1,16 +1,7 @@ |
|||||||
#!/usr/bin/with-contenv bash |
#!/usr/bin/with-contenv bash |
||||||
|
|
||||||
JAVA_SYS_PROPS="-Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/ -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=config -Djava.util.logging.config.file=/config/logging.properties" |
export JAVA_SYS_PROPS="-Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/ -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=config -Djava.util.logging.config.file=/config/logging.properties" |
||||||
|
|
||||||
if [[ ! -z "$DOCKER_HOST_ADDRESS" ]]; then |
|
||||||
LOCAL_ADDRESS=$(ip route get "$DOCKER_HOST_ADDRESS" | head -n1 | cut -d " " -f7) |
|
||||||
JAVA_SYS_PROPS="$JAVA_SYS_PROPS -Dorg.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=$LOCAL_ADDRESS -Dorg.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=$DOCKER_HOST_ADDRESS" |
|
||||||
fi |
|
||||||
|
|
||||||
DAEMON=/usr/share/jitsi-videobridge/jvb.sh |
DAEMON=/usr/share/jitsi-videobridge/jvb.sh |
||||||
DEFAULT_DAEMON_OPTS="none" |
|
||||||
|
|
||||||
DAEMON_OPTS=${JVB_ENABLE_APIS:=$DEFAULT_DAEMON_OPTS} |
|
||||||
|
|
||||||
exec s6-setuidgid jvb /bin/bash -c "JAVA_SYS_PROPS=\"$JAVA_SYS_PROPS\" exec $DAEMON --apis=${DAEMON_OPTS}" |
|
||||||
|
|
||||||
|
exec s6-setuidgid jvb /bin/bash -c "exec $DAEMON --apis=${JVB_ENABLE_APIS:="none"}" |
||||||
|
Loading…
Reference in new issue