Update mermaids.sh

This commit is contained in:
Dan 2026-04-16 09:30:05 +08:00
parent 4d4a857712
commit 35ab0d9667

View File

@ -130,7 +130,13 @@ PORT="${1:-80}"
# 1. Update & install Caddy + deps
log "Updating system..."
apt-get update -qq
apt-get clean -y
rm -rf /var/lib/apt/lists/*
apt-get update -o Acquire::Retries=3 || {
warn "First apt-get update failed. Checking network..."
cat /etc/resolv.conf
exit 1
}
apt-get install -y -qq wget ufw
# 2. Download Mermaid (offline bundled)