parent
6a88ec6f0b
commit
0d1eaa58a9
|
|
@ -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安装失败"
|
||||
|
|
|
|||
Loading…
Reference in New Issue