From ef4f1a1ef76cf83d504b8057b11cb96c66f3b79c Mon Sep 17 00:00:00 2001 From: petruknw Date: Thu, 21 May 2026 23:28:16 +1000 Subject: [PATCH 1/4] aurral: replace bashio with jq to read /data/options.json --- aurral/rootfs/usr/local/bin/docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aurral/rootfs/usr/local/bin/docker-entrypoint.sh b/aurral/rootfs/usr/local/bin/docker-entrypoint.sh index 16bca8c0e1..a4bf0771d9 100644 --- a/aurral/rootfs/usr/local/bin/docker-entrypoint.sh +++ b/aurral/rootfs/usr/local/bin/docker-entrypoint.sh @@ -1,8 +1,8 @@ #!/bin/sh set -e -DOWNLOAD_FOLDER=$(bashio::config 'download_folder') -WEEKLY_FLOW_SUFFIX=$(bashio::config 'weekly_flow_folder') +DOWNLOAD_FOLDER=$(jq -r '.download_folder // "/share/aurral/downloads"' /data/options.json) +WEEKLY_FLOW_SUFFIX=$(jq -r '.weekly_flow_folder // "weekly-flow"' /data/options.json) export DOWNLOAD_FOLDER export WEEKLY_FLOW_FOLDER="${DOWNLOAD_FOLDER}/${WEEKLY_FLOW_SUFFIX}" From cf329eab0d874bba645def5d1e13e9a95ff534fe Mon Sep 17 00:00:00 2001 From: petruknw Date: Thu, 21 May 2026 23:30:28 +1000 Subject: [PATCH 2/4] aurral: revert to env vars injected by HA supervisor --- aurral/rootfs/usr/local/bin/docker-entrypoint.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/aurral/rootfs/usr/local/bin/docker-entrypoint.sh b/aurral/rootfs/usr/local/bin/docker-entrypoint.sh index a4bf0771d9..570d0290be 100644 --- a/aurral/rootfs/usr/local/bin/docker-entrypoint.sh +++ b/aurral/rootfs/usr/local/bin/docker-entrypoint.sh @@ -1,15 +1,12 @@ #!/bin/sh set -e -DOWNLOAD_FOLDER=$(jq -r '.download_folder // "/share/aurral/downloads"' /data/options.json) -WEEKLY_FLOW_SUFFIX=$(jq -r '.weekly_flow_folder // "weekly-flow"' /data/options.json) +# HA Supervisor injects addon options as env vars automatically. +# DOWNLOAD_FOLDER and WEEKLY_FLOW_FOLDER are set by HA from options.json, +# with the Dockerfile ENV values as fallbacks. -export DOWNLOAD_FOLDER -export WEEKLY_FLOW_FOLDER="${DOWNLOAD_FOLDER}/${WEEKLY_FLOW_SUFFIX}" - -# Create persistent directories in HA volumes mkdir -p /config/data -mkdir -p "${DOWNLOAD_FOLDER}" -mkdir -p "${WEEKLY_FLOW_FOLDER}" +mkdir -p "${DOWNLOAD_FOLDER:-/share/aurral/downloads}" +mkdir -p "${WEEKLY_FLOW_FOLDER:-/share/aurral/downloads/weekly-flow}" exec "$@" From 34e83e8e67fc356c6848fafc1cc655f4dfa681fc Mon Sep 17 00:00:00 2001 From: petruknw Date: Thu, 21 May 2026 23:32:39 +1000 Subject: [PATCH 3/4] aurral: bump to 1.76.17-2 --- aurral/CHANGELOG.md | 5 +++++ aurral/config.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/aurral/CHANGELOG.md b/aurral/CHANGELOG.md index d7b8294b60..9eb9253179 100644 --- a/aurral/CHANGELOG.md +++ b/aurral/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.76.17-2 + +- Fix entrypoint: use HA-injected env vars instead of bashio (not available in upstream image) +- Restore mkdir for persistent data/download directories + ## 1.76.17-1 - Add `weekly_flow_folder` option (configurable subfolder for weekly flow files) diff --git a/aurral/config.yaml b/aurral/config.yaml index c397f56dc4..8f87d1dfd0 100644 --- a/aurral/config.yaml +++ b/aurral/config.yaml @@ -1,5 +1,5 @@ name: Aurral -version: "1.76.17-1" +version: "1.76.17-2" slug: aurral description: >- Self-hosted music discovery, request management, flows, and playlist From 6cf7dc4a6ed1f180253ee274ad32694c5b187819 Mon Sep 17 00:00:00 2001 From: petruknw Date: Thu, 21 May 2026 23:37:39 +1000 Subject: [PATCH 4/4] aurral: remove hardcoded fallbacks from entrypoint mkdirs --- aurral/rootfs/usr/local/bin/docker-entrypoint.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/aurral/rootfs/usr/local/bin/docker-entrypoint.sh b/aurral/rootfs/usr/local/bin/docker-entrypoint.sh index 570d0290be..7b6b1e9c06 100644 --- a/aurral/rootfs/usr/local/bin/docker-entrypoint.sh +++ b/aurral/rootfs/usr/local/bin/docker-entrypoint.sh @@ -1,12 +1,8 @@ #!/bin/sh set -e -# HA Supervisor injects addon options as env vars automatically. -# DOWNLOAD_FOLDER and WEEKLY_FLOW_FOLDER are set by HA from options.json, -# with the Dockerfile ENV values as fallbacks. - mkdir -p /config/data -mkdir -p "${DOWNLOAD_FOLDER:-/share/aurral/downloads}" -mkdir -p "${WEEKLY_FLOW_FOLDER:-/share/aurral/downloads/weekly-flow}" +mkdir -p "${DOWNLOAD_FOLDER}" +mkdir -p "${WEEKLY_FLOW_FOLDER}" exec "$@"