mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
10 lines
315 B
Plaintext
10 lines
315 B
Plaintext
|
#!/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
|