From 1ff69e2eb1e8b78ca9e4bade0a97db6a1fa8f0ca Mon Sep 17 00:00:00 2001 From: Nathan Fretz Date: Tue, 6 Aug 2024 21:14:13 +1000 Subject: [PATCH] Update Navidrome to v0.52.5-hotfix (#1303) --- navidrome/hooks/pre-start | 23 +++++++++++++++++++++++ navidrome/umbrel-app.yml | 8 +++++--- 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100755 navidrome/hooks/pre-start diff --git a/navidrome/hooks/pre-start b/navidrome/hooks/pre-start new file mode 100755 index 0000000..82ed2e5 --- /dev/null +++ b/navidrome/hooks/pre-start @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +set -euo pipefail + +UMBREL_STORAGE_DOWNLOADS_MUSIC_DIR="${UMBREL_ROOT}/data/storage/downloads/music" +DESIRED_OWNER="1000:1000" + +if [[ ! -d "${UMBREL_STORAGE_DOWNLOADS_MUSIC_DIR}" ]]; then + mkdir -p "${UMBREL_STORAGE_DOWNLOADS_MUSIC_DIR}" +fi + +navidrome_correct_permission() { + local -r path="${1}" + + if [[ -d "${path}" ]]; then + owner=$(stat -c "%u:%g" "${path}") + + if [[ "${owner}" != "${DESIRED_OWNER}" ]]; then + chown "${DESIRED_OWNER}" "${path}" + fi + fi +} + +navidrome_correct_permission "${UMBREL_STORAGE_DOWNLOADS_MUSIC_DIR}" diff --git a/navidrome/umbrel-app.yml b/navidrome/umbrel-app.yml index 88bfcf5..9ce0167 100644 --- a/navidrome/umbrel-app.yml +++ b/navidrome/umbrel-app.yml @@ -1,8 +1,8 @@ -manifestVersion: 1 +manifestVersion: 1.1 id: navidrome category: media name: Navidrome -version: "0.52.5" +version: "0.52.5-hotfix" tagline: Your personal streaming service description: >- Navidrome is an open source web-based music collection server and streamer. @@ -50,6 +50,8 @@ gallery: path: "" permissions: - STORAGE_DOWNLOADS -releaseNotes: "" +releaseNotes: >- + This is a hotfix release to ensure that the main music folder has the correct permissions set to allow proper access to the music files. + There are no new features or bug fixes in this release. submitter: owmsoton submission: https://github.com/getumbrel/umbrel-apps/pull/1232