Files
hassio-addons/birdnet-pipy/rootfs/etc/services.d/main/run
copilot-swe-agent[bot] db417e78d6 Fix Icecast service hardcoding /run/pulse/native and ignoring PULSE_SERVER
- Use ${PULSE_SERVER:-unix:/run/pulse/native} in icecast/run and main/run
  to respect the PULSE_SERVER env var set by HA supervisor
- Create /run/pulse/native symlink when PulseAudio socket is elsewhere
- Copy PulseAudio cookie for icecast2 user authentication
- Add icecast2 to audio group

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-02-22 23:31:55 +00:00

9 lines
232 B
Plaintext

#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -euo pipefail
export PYTHONPATH=/app
export PULSE_SERVER="${PULSE_SERVER:-unix:/run/pulse/native}"
bashio::net.wait_for 5002 127.0.0.1 300
cd /app
exec python3 -m core.main