diff --git a/mermaids.sh b/mermaids.sh index 7dcafa9..03846b9 100644 --- a/mermaids.sh +++ b/mermaids.sh @@ -154,16 +154,18 @@ PORT="${1:-80}" log "Fixing Debian CDN routing..." # Try AdGuard's CDN node first -if curl -sf http://146.75.22.132/debian/dists/bookworm/Release >/dev/null 2>&1; then +# if curl -sf http://146.75.22.132/debian/dists/bookworm/Release >/dev/null 2>&1; then sed -i "s|http://deb.debian.org|http://146.75.22.132|g" /etc/apt/sources.list log "Using Fastly node: 146.75.22.132" -# Fallback to Cloudflare's CDN node -elif curl -sf http://151.101.2.132/debian/dists/bookworm/Release >/dev/null 2>&1; then - sed -i "s|http://deb.debian.org|http://151.101.2.132|g" /etc/apt/sources.list - log "Using Fastly node: 151.101.2.132" -else - warn "Both Fastly nodes unreachable — trying direct domain (may fail)" -fi +# # Fallback to Cloudflare's CDN node +# elif curl -sf http://151.101.2.132/debian/dists/bookworm/Release >/dev/null 2>&1; then +# sed -i "s|http://deb.debian.org|http://151.101.2.132|g" /etc/apt/sources.list +# log "Using Fastly node: 151.101.2.132" +# else +# warn "Both Fastly nodes unreachable — trying direct domain (may fail)" +# fi + +apt-get update -o Acquire::Retries=3 log "Installing dependencies..." apt-get install -y -qq \