From f397ec62ed449c5c75469948ffc8d9b38cb6db75 Mon Sep 17 00:00:00 2001 From: Sli Date: Tue, 20 Jan 2026 14:19:10 +0100 Subject: [PATCH] Fix environment variable not being forwarded to liquidsoap --- README.md | 2 +- entrypoint.sh | 4 +++- www/index.html | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 45b6ea3..0e699e7 100644 --- a/README.md +++ b/README.md @@ -27,4 +27,4 @@ Then visit http://localhost:8000 to listen! - **Liquidsoap** - Audio stream generation and HTTP server - **yt-dlp** - YouTube playlist downloading - **FFmpeg** - Audio format conversion -- **Python 3.9** - Automation scripts +- **Python 3.14** - Automation scripts diff --git a/entrypoint.sh b/entrypoint.sh index 275bb32..3c6c71a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,6 @@ #!/bin/bash -e +HOSTNAME=${HOSTNAME:=localhost} +PORT=${PORT:=8000} touch /songs/playlist.pls /jingles/playlist.pls @@ -9,4 +11,4 @@ python /opt/je_te_met_en_pls.py /air-support /opt/ultrasync.sh & # Run Liquidsoap as zambla user -runuser -l zambla -c 'liquidsoap /opt/radio.liq' +runuser -l zambla -c "HOSTNAME=$HOSTNAME PORT=$PORT liquidsoap /opt/radio.liq" diff --git a/www/index.html b/www/index.html index b910429..2eaef27 100644 --- a/www/index.html +++ b/www/index.html @@ -8,7 +8,7 @@