Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hors committed Jul 25, 2023
1 parent 15ef2d4 commit f42bd35
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions haproxy/dockerdir/usr/bin/add_pxc_nodes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

set -o errexit

. /entrypoint.sh
log() {
local message=$1
local date=$(/usr/bin/date +"%d/%b/%Y:%H:%M:%S.%3N")

echo "{\"time\":\"${date}\", \"message\": \"${message}\"}"
}

function main() {
log "Running $0"
Expand Down Expand Up @@ -132,7 +137,6 @@ EOF
fi

if [ -S "$path_to_haproxy_cfg/haproxy-main.sock" ]; then
log "reload haproxy"
log "reload | socat stdio $path_to_haproxy_cfg/haproxy-main.sock"
echo 'reload' | socat stdio "$path_to_haproxy_cfg/haproxy-main.sock"
fi
Expand Down

0 comments on commit f42bd35

Please sign in to comment.