Skip to content

Commit

Permalink
all: imp naming
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Mar 26, 2023
1 parent 26b6448 commit e150fee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit e150fee

Please sign in to comment.