mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-13 16:34:22 +01:00
- 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>
9 lines
232 B
Plaintext
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
|