Skip to content

Commit

Permalink
Update Navidrome to v0.52.5-hotfix (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmfretz authored Aug 6, 2024
1 parent b5da684 commit 1ff69e2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
23 changes: 23 additions & 0 deletions navidrome/hooks/pre-start
Original file line number Diff line number Diff line change
@@ -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}"
8 changes: 5 additions & 3 deletions navidrome/umbrel-app.yml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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

0 comments on commit 1ff69e2

Please sign in to comment.