mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-14 17:04:26 +01:00
20 lines
597 B
Plaintext
20 lines
597 B
Plaintext
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
set -euo pipefail
|
|
|
|
# ==============================================================================
|
|
# Home Assistant Add-on: NetBird Server
|
|
# Runs Coturn
|
|
# ==============================================================================
|
|
|
|
DATA_DIR="/config/netbird"
|
|
TURN_CONFIG="$DATA_DIR/turn/turnserver.conf"
|
|
|
|
if [[ ! -f "$TURN_CONFIG" ]]; then
|
|
bashio::log.error "Missing Coturn configuration at ${TURN_CONFIG}."
|
|
bashio::exit.nok
|
|
fi
|
|
|
|
bashio::log.info "Starting Coturn..."
|
|
exec /usr/local/bin/turnserver -c "$TURN_CONFIG" --log-file stdout
|