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:
parent
4672934701
commit
55120ae165
@ -2405,10 +2405,10 @@ function setup_mongodb() {
|
||||
esac
|
||||
|
||||
# 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"
|
||||
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)"
|
||||
return 1
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user