Update mermaids.sh
This commit is contained in:
parent
de40a7e11e
commit
45312585d1
19
mermaids.sh
19
mermaids.sh
@ -135,25 +135,6 @@ die() { echo -e "${RED}[$(date +%H:%M:%S)]${NC} $1"; exit 1; }
|
||||
PORT="${1:-80}"
|
||||
|
||||
# === Now run operations ===
|
||||
# === BYPASS DNS: Use Debian CDN IP directly ===
|
||||
log "Bypassing DNS — using Fastly CDN IPs directly..."
|
||||
|
||||
# Hardcode Debian repo IPs (Fastly)
|
||||
cat > /etc/apt/sources.list <<'EOF'
|
||||
deb http://146.75.22.132/debian bookworm main non-free non-free-firmware
|
||||
deb http://146.75.22.132/debian-security bookworm-security main non-free non-free-firmware
|
||||
deb http://146.75.22.132/debian bookworm-updates main non-free non-free-firmware
|
||||
EOF
|
||||
|
||||
# Skip resolv.conf entirely — no DNS queries needed
|
||||
log "Installing dependencies (no DNS required)..."
|
||||
apt-get update -o Acquire::Retries=5 || {
|
||||
warn "Failed with primary IP — trying fallback..."
|
||||
# Fallback to secondary Fastly node
|
||||
sed -i 's|146.75.22.132|151.101.2.132|g' /etc/apt/sources.list
|
||||
apt-get update -o Acquire::Retries=5 || die "apt-get update failed after all retries"
|
||||
}
|
||||
|
||||
log "Installing dependencies..."
|
||||
apt-get install -y -qq \
|
||||
wget \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user