docker: Don't rely on default values when updating TURN settings.

This commit is contained in:
Joachim Bauch 2023-03-06 09:16:53 +01:00
parent 54fd71dae3
commit db6fb9fc6b
No known key found for this signature in database
GPG Key ID: 77C1D22D53E15F02
1 changed files with 3 additions and 3 deletions

View File

@ -129,13 +129,13 @@ if [ ! -f "$CONFIG" ]; then
if [ ! -z "$SKIP_VERIFY" ]; then
sed -i "s|#skipverify =.*|skipverify = $SKIP_VERIFY|" "$CONFIG"
fi
fi
if [ ! -z "$TURN_API_KEY" ]; then
sed -i "s|#apikey = the-api-key-for-the-rest-service|apikey = $TURN_API_KEY|" "$CONFIG"
sed -i "s|#\?apikey =.*|apikey = $TURN_API_KEY|" "$CONFIG"
fi
if [ ! -z "$TURN_SECRET" ]; then
sed -i "s|#secret = 6d1c17a7-c736-4e22-b02c-e2955b7ecc64|secret = $TURN_SECRET|" "$CONFIG"
sed -i "/same as on the TURN server/{n;s|#\?secret =.*|secret = $TURN_SECRET|}" "$CONFIG"
fi
if [ ! -z "$TURN_SERVERS" ]; then
sed -i "s|#servers =.*|servers = $TURN_SERVERS|" "$CONFIG"