coreos-home-server/service/coturn/container/run-coturn

10 lines
315 B
Plaintext
Raw Normal View History

#!/bin/sh
# Prepare configuration files for environment variable substitution.
ENV_NAMES="$(env | awk -F= '{printf "$%s ", $1}')"
for file in /etc/coturn/*.template; do
envsubst "$ENV_NAMES" < "$file" > "$(echo "$file" | awk -F '.template$' '{print $1}')"
done
/usr/bin/turnserver -c /etc/coturn/turnserver.conf