diff --git a/aurral/CHANGELOG.md b/aurral/CHANGELOG.md index 8265d1c024..d7b8294b60 100644 --- a/aurral/CHANGELOG.md +++ b/aurral/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.76.17-1 + +- Add `weekly_flow_folder` option (configurable subfolder for weekly flow files) +- Fix addon config schema (`env_vars` -> `environment`) +- Add image tag for alexbelgium build pipeline + ## 1.76.17 - Initial release diff --git a/aurral/README.md b/aurral/README.md index b8513ddbd0..db6a9464a8 100644 --- a/aurral/README.md +++ b/aurral/README.md @@ -8,6 +8,7 @@ This addon is based on the docker image | Option | Default | Description | |---|---|---| | `download_folder` | `/share/aurral/downloads` | Path where Aurral writes flow downloads. Must be under `/share`. | +| `weekly_flow_folder` | `weekly-flow` | Subfolder name appended to `download_folder` for weekly flow files. The full path will be `download_folder/weekly_flow_folder`. | ## Installation @@ -18,6 +19,7 @@ This addon is based on the docker image 2. Install this add-on. 3. Click the `Save` button to store your configuration. 4. Set the `download_folder` option to your preferred path. -5. Start the add-on. -6. Check the logs of the add-on to see if everything went well. -7. Open the webUI and complete onboarding. +5. Optionally set `weekly_flow_folder` to customise the weekly flow subfolder name. +6. Start the add-on. +7. Check the logs of the add-on to see if everything went well. +8. Open the webUI and complete onboarding. diff --git a/aurral/build.json b/aurral/build.json index d1cdd35b3c..27ff6f0394 100644 --- a/aurral/build.json +++ b/aurral/build.json @@ -2,14 +2,5 @@ "build_from": { "aarch64": "ghcr.io/lklynet/aurral:1.76.17", "amd64": "ghcr.io/lklynet/aurral:1.76.17" - }, - "squash": false, - "labels": { - "io.hass.name": "Aurral", - "io.hass.description": "Self-hosted music discovery and request management for Lidarr", - "io.hass.arch": "{arch}", - "io.hass.type": "addon", - "io.hass.version": "dev", - "maintainer": "petruknw" } } diff --git a/aurral/config.yaml b/aurral/config.yaml index 3e44bd471a..c397f56dc4 100644 --- a/aurral/config.yaml +++ b/aurral/config.yaml @@ -1,5 +1,5 @@ name: Aurral -version: "1.76.17" +version: "1.76.17-1" slug: aurral description: >- Self-hosted music discovery, request management, flows, and playlist @@ -9,6 +9,8 @@ arch: - aarch64 - amd64 +image: ghcr.io/alexbelgium/aurral-{arch} + init: false ports: @@ -23,13 +25,10 @@ map: - share:rw - media:rw -env_vars: - - name: WEEKLY_FLOW_FOLDER - description: "Path for Navidrome smart playlist files (weekly flow)" - required: false - 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 100755 --- 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 "$@"