From decb9f5860644846322c0a5698716a2a06abd424 Mon Sep 17 00:00:00 2001 From: sstent Date: Mon, 9 Feb 2026 06:53:31 -0800 Subject: [PATCH] feat(entrypoint): Ensure shared directories exist and clean up start_app --- entrypoint.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0868c5d..73173f9 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -48,10 +48,8 @@ deregister_service() { start_app() { echo "Node is Primary. Starting Navidrome..." - # Ensure DB path and local data folder are set - export ND_DATABASE_PATH="/data/navidrome.db" - export ND_DATAFOLDER="/local/data" - mkdir -p /local/data + # Ensure shared directories exist + mkdir -p /shared_data/plugins /shared_data/cache /shared_data/backup /app/navidrome & NAVIDROME_PID=$! @@ -121,4 +119,4 @@ while true; do # Sleep short enough to update TTL (every 5s is safe for 15s TTL) sleep 5 & wait $! # Wait allows the 'trap' to interrupt the sleep instantly -done \ No newline at end of file +done