Skip to content

Commit 6882248

Browse files
committed
fix: remove tier 3
1 parent c845268 commit 6882248

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ebssurrogate/scripts/chroot-bootstrap-nix.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fi
2424
# Mirror fallback function for resilient apt-get update
2525
function 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

ebssurrogate/scripts/surrogate-bootstrap-nix.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fi
2020
# Mirror fallback function for resilient apt-get update
2121
function 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

0 commit comments

Comments
 (0)