From 0d1eaa58a9039902ae66959a78accdbebfd025e8 Mon Sep 17 00:00:00 2001 From: joy Date: Sun, 2 Nov 2025 19:13:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20scripts/haproxy.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit we --- scripts/haproxy.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/haproxy.sh b/scripts/haproxy.sh index 8265067..8a8bdb1 100644 --- a/scripts/haproxy.sh +++ b/scripts/haproxy.sh @@ -107,7 +107,8 @@ install_haproxy() { info "HAProxy未安装,开始安装..." step 2 5 "安装HAProxy软件包" info "更新系统包索引..." - if apt update -qq; then + #if apt update -qq; then + if apt update ; then success "系统包索引更新完成" else error "系统包索引更新失败,请检查网络" @@ -115,7 +116,8 @@ install_haproxy() { fi info "安装HAProxy..." - if apt install -y -qq haproxy; then + #if apt install -y -qq haproxy; then + if apt install -y haproxy; then success "HAProxy安装完成" else error "HAProxy安装失败"