From c7ee889b2ccccbe607b92fd81925a31de72f4f85 Mon Sep 17 00:00:00 2001 From: petruknw Date: Thu, 21 May 2026 22:36:28 +1000 Subject: [PATCH] aurral: make weekly_flow_folder user-configurable, derive env var in entrypoint --- aurral/config.yaml | 5 ++--- aurral/rootfs/usr/local/bin/docker-entrypoint.sh | 12 +++++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/aurral/config.yaml b/aurral/config.yaml index 02547978e7..a438e73110 100644 --- a/aurral/config.yaml +++ b/aurral/config.yaml @@ -25,11 +25,10 @@ map: - share:rw - media:rw -environment: - WEEKLY_FLOW_FOLDER: "/share/aurral/downloads/weekly-flow" - options: download_folder: /share/aurral/downloads + weekly_flow_folder: weekly-flow schema: download_folder: str + weekly_flow_folder: str diff --git a/aurral/rootfs/usr/local/bin/docker-entrypoint.sh b/aurral/rootfs/usr/local/bin/docker-entrypoint.sh index 7ff15f9947..16bca8c0e1 100644 --- a/aurral/rootfs/usr/local/bin/docker-entrypoint.sh +++ b/aurral/rootfs/usr/local/bin/docker-entrypoint.sh @@ -1,9 +1,15 @@ #!/bin/sh set -e -# Create the real directories in HA persistent storage that the symlinks point to +DOWNLOAD_FOLDER=$(bashio::config 'download_folder') +WEEKLY_FLOW_SUFFIX=$(bashio::config 'weekly_flow_folder') + +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:-/share/aurral/downloads}" -mkdir -p "${WEEKLY_FLOW_FOLDER:-/share/aurral/downloads/weekly-flow}" +mkdir -p "${DOWNLOAD_FOLDER}" +mkdir -p "${WEEKLY_FLOW_FOLDER}" exec "$@"