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
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 42s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user