Update mermaids.sh
This commit is contained in:
parent
fb7e4b0e60
commit
ff47e4ea57
18
mermaids.sh
18
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 \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user