Fix MongoDB repo verification path in setup script

Update the repository path passed to verify_repo_available to include the MongoDB version, ensuring the correct repository is checked for availability.
This commit is contained in:
CanbiZ 2025-10-22 16:50:53 +02:00
parent 4672934701
commit 55120ae165

View File

@ -2405,10 +2405,10 @@ function setup_mongodb() {
esac esac
# Verify the repository is available # Verify the repository is available
if ! verify_repo_available "$MONGO_BASE_URL" "$SUITE"; then if ! verify_repo_available "$MONGO_BASE_URL" "${SUITE}/mongodb-org/${MONGO_VERSION}"; then
msg_warn "MongoDB repo not available for ${DISTRO_ID}-${SUITE}, trying bookworm fallback" msg_warn "MongoDB repo not available for ${DISTRO_ID}-${SUITE}, trying bookworm fallback"
SUITE="bookworm" SUITE="bookworm"
if ! verify_repo_available "$MONGO_BASE_URL" "$SUITE"; then if ! verify_repo_available "$MONGO_BASE_URL" "${SUITE}/mongodb-org/${MONGO_VERSION}"; then
msg_error "MongoDB repository not available for ${DISTRO_ID}-${DISTRO_CODENAME} (tried ${DISTRO_CODENAME} and bookworm)" msg_error "MongoDB repository not available for ${DISTRO_ID}-${DISTRO_CODENAME} (tried ${DISTRO_CODENAME} and bookworm)"
return 1 return 1
fi fi