1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-07 16:06:14 +00:00

auto create turn credentials file from env (#126)

* auto create turn credentials file from env
This commit is contained in:
Felix Bartels 2019-03-24 11:36:19 +01:00 committed by GitHub
parent a95a1f9b14
commit 830ac3c838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,6 @@ fi
# kwmserver turn
# shellcheck disable=SC2154
if [ -z "$turn_service_url" ]; then
turn_service_url=https://turnauth.kopano.com/turnserverauth/
fi
@ -32,10 +31,16 @@ if [ -n "$turn_service_url" ]; then
set -- "$@" --turn-service-url="$turn_service_url"
fi
# shellcheck disable=SC2154
if [ -n "$turn_service_credentials_user" ] && [ -n "$turn_service_credentials_password" ]; then
turn_service_credentials=/tmp/turn_service_credentials
echo "$turn_service_credentials_user":"$turn_service_credentials_password" > "$turn_service_credentials"
fi
# shellcheck disable=SC2154
if [ -n "$turn_service_credentials" ]; then
set -- "$@" --turn-service-credentials="$$turn_service_credentials"
fi
set -- "$@" --turn-service-credentials="$turn_service_credentials"
fi
# shellcheck disable=SC2154
if [ -n "$turn_server_shared_secret" ]; then