fix: generate navidrome.toml to force database path to LiteFS mount
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 42s

This commit is contained in:
2026-02-08 15:34:54 -08:00
parent 4fc5fc3d9d
commit 640a76bbd1

View File

@@ -56,8 +56,16 @@ while true; do
}
}" "${CONSUL_HTTP_ADDR}/v1/agent/service/register"
# Generate config file to force DB path
echo "Generating navidrome.toml..."
cat <<EOF > /local/data/navidrome.toml
DataFolder = "/local/data"
DatabasePath = "/data/navidrome.db"
CacheFolder = "/shared_data/cache"
EOF
# Start Navidrome
/app/navidrome &
/app/navidrome --configfile /local/data/navidrome.toml &
NAVIDROME_PID=$!
echo "Navidrome started with PID $NAVIDROME_PID"
fi