File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 2424# Mirror fallback function for resilient apt-get update
2525function apt_update_with_fallback {
2626 local sources_file=" /etc/apt/sources.list"
27- local max_attempts=3
27+ local max_attempts=2
2828 local attempt=1
2929
3030 # Detect the current region from sources.list (it's already been substituted)
@@ -35,7 +35,6 @@ function apt_update_with_fallback {
3535 local -a mirror_tiers=(
3636 " ${current_region} .clouds.ports.ubuntu.com" # Tier 1: Regional CDN (as set in sources.list)
3737 " ports.ubuntu.com" # Tier 2: Global pool
38- " mirror.aarnet.edu.au" # Tier 3: Australia mirror (close to ap-southeast-1)
3938 )
4039
4140 # If we couldn't detect current region, skip tier 1
Original file line number Diff line number Diff line change 2020# Mirror fallback function for resilient apt-get update
2121function apt_update_with_fallback {
2222 local sources_file=" /etc/apt/sources.list"
23- local max_attempts=3
23+ local max_attempts=2
2424 local attempt=1
2525
2626 # Get EC2 region if not already set
@@ -32,7 +32,6 @@ function apt_update_with_fallback {
3232 local -a mirror_tiers=(
3333 " ${REGION} .clouds.ports.ubuntu.com" # Tier 1: Regional CDN
3434 " ports.ubuntu.com" # Tier 2: Global pool
35- " mirror.aarnet.edu.au" # Tier 3: Australia mirror (close to ap-southeast-1)
3635 )
3736
3837 # If we couldn't get REGION, skip tier 1
You can’t perform that action at this time.
0 commit comments