From e150fee8025dacdc5aa1d12916d1f42e89216156 Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Sun, 26 Mar 2023 17:18:12 +0500 Subject: [PATCH] all: imp naming --- docker/healthcheck.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/healthcheck.sh b/docker/healthcheck.sh index bee079a92bb..c8606bb7c89 100755 --- a/docker/healthcheck.sh +++ b/docker/healthcheck.sh @@ -32,16 +32,16 @@ readonly help_dir # Parse web host -web_host="$( awk -f "${help_dir}/web-bind.awk" "$filename" )" -readonly web_host +web_url="$( awk -f "${help_dir}/web-bind.awk" "$filename" )" +readonly web_url -if [ "$web_host" = '' ] +if [ "$web_url" = '' ] then error_exit "no web bindings could be retrieved from $filename" fi # TODO(e.burkov): Deal with 0 port. -case "$web_host" +case "$web_url" in (*':0') error_exit '0 in web port is not supported by healthcheck'