Minor fix entrypoint openvidu-server and openvidu-server-pro docker images

pull/553/head
cruizba 2020-11-02 21:15:18 +01:00
parent 553e63513c
commit 76805ff543
2 changed files with 4 additions and 4 deletions

View File

@ -25,9 +25,9 @@ printf "\n"
# Get coturn public ip
[[ -z "${COTURN_IP}" ]] && export COTURN_IP=auto-ipv4
if [[ -z "${COTURN_IP}" == "auto-ipv4" ]]; then
if [[ "${COTURN_IP}" == "auto-ipv4" ]]; then
COTURN_IP=$(/usr/local/bin/discover_my_public_ip.sh)
elif [[ -z "${COTURN_IP}" == "auto-ipv6" ]]; then
elif [[ "${COTURN_IP}" == "auto-ipv6" ]]; then
COTURN_IP=$(/usr/local/bin/discover_my_public_ip.sh --ipv6)
fi

View File

@ -8,9 +8,9 @@ printf "\n"
# Get coturn public ip
[[ -z "${COTURN_IP}" ]] && export COTURN_IP=auto-ipv4
if [[ -z "${COTURN_IP}" == "auto-ipv4" ]]; then
if [[ "${COTURN_IP}" == "auto-ipv4" ]]; then
COTURN_IP=$(/usr/local/bin/discover_my_public_ip.sh)
elif [[ -z "${COTURN_IP}" == "auto-ipv6" ]]; then
elif [[ "${COTURN_IP}" == "auto-ipv6" ]]; then
COTURN_IP=$(/usr/local/bin/discover_my_public_ip.sh --ipv6)
fi