mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user