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>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-22 23:31:55 +00:00
parent 0a8637d90c
commit db417e78d6
3 changed files with 27 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
# shellcheck shell=bash
set -euo pipefail
export PYTHONPATH=/app
export PULSE_SERVER=unix:/run/pulse/native
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