fix(lyrion,photoprism): Update default media paths for external drives

- Lyrion: Default media_path changed from /srv/media to /mnt/MUSIC
- PhotoPrism: Default originals_path changed from /srv/photoprism/originals to /mnt/PHOTO

These paths reflect the actual mount points used for external media storage.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-03-07 06:29:54 +01:00
parent d01828d632
commit bc8148db50
4 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,7 @@ config lyrion 'main'
option runtime 'auto'
option image 'ghcr.io/lms-community/lyrionmusicserver:stable'
option data_path '/srv/lyrion'
option media_path '/srv/media'
option media_path '/mnt/MUSIC'
option port '9000'
option timezone 'UTC'
option memory_limit '256M'

View File

@ -51,7 +51,7 @@ load_config() {
runtime="$(uci_get runtime || echo auto)"
image="$(uci_get image || echo ghcr.io/lms-community/lyrionmusicserver:stable)"
data_path="$(uci_get data_path || echo /srv/lyrion)"
media_path="$(uci_get media_path || echo /srv/media)"
media_path="$(uci_get media_path || echo /mnt/MUSIC)"
port="$(uci_get port || echo 9000)"
timezone="$(uci_get timezone || cat /etc/TZ 2>/dev/null || echo UTC)"
memory_limit="$(uci_get memory_limit || echo 256M)"

View File

@ -3,6 +3,7 @@
config photoprism 'main'
option enabled '0'
option data_path '/srv/photoprism'
option originals_path '/mnt/PHOTO'
option http_port '2342'
option memory_limit '2G'
option timezone 'Europe/Paris'

View File

@ -36,7 +36,7 @@ uci_set() { uci set "${CONFIG}.$1=$2" && uci commit "$CONFIG"; }
defaults() {
ENABLED=$(uci_get main.enabled 0)
DATA_PATH=$(uci_get main.data_path /srv/photoprism)
ORIGINALS_PATH=$(uci_get main.originals_path /srv/photoprism/originals)
ORIGINALS_PATH=$(uci_get main.originals_path /mnt/PHOTO)
HTTP_PORT=$(uci_get main.http_port 2342)
MEMORY_LIMIT=$(uci_get main.memory_limit 2G)
TIMEZONE=$(uci_get main.timezone Europe/Paris)