更新 scripts/haproxy.sh

we
This commit is contained in:
joy 2025-11-02 19:13:37 +08:00
parent 6a88ec6f0b
commit 0d1eaa58a9
1 changed files with 4 additions and 2 deletions

View File

@ -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安装失败"