[FIX] check forward.conf,make sure the installation for lb . closed #30

This commit is contained in:
ysicing 2018-01-09 11:48:45 +08:00
parent a76b5a6e27
commit c5abfe7f7a

View File

@ -717,6 +717,12 @@ server {
}
EOF
[ -f "/etc/goodrain/openresty/servers/http/forward.conf" ] && (
log.info "forward exist"
) || (
log.error "forward not found"
)
}
function install_lb() {
@ -747,9 +753,10 @@ services:
restart: always
EOF
dc-compose up -d rbd-lb
dc-compose stop
lb_add_forward
dc-compose up -d rbd-lb
dc-compose start rbd-lb
}
function install_eventlog() {