Files
hassio-addons/netbird-server/rootfs/etc/services.d/signal/run
2026-02-06 12:26:42 +01:00

19 lines
621 B
Plaintext

#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -euo pipefail
# ==============================================================================
# Home Assistant Add-on: NetBird Server
# Runs the NetBird Signal service
# ==============================================================================
SIGNAL_LISTEN=$(bashio::config 'signal_listen')
LOG_LEVEL=$(bashio::config 'log_level')
SIGNAL_PORT="${SIGNAL_LISTEN##*:}"
bashio::log.info "Starting NetBird Signal on port ${SIGNAL_PORT}..."
exec /usr/local/bin/netbird-signal run \
--port "$SIGNAL_PORT" \
--log-level "$LOG_LEVEL" \
--log-file console