From 7ae41de240d0ec27327b37531b122ae9c31dec50 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 4 Jul 2024 20:31:39 +0400 Subject: [PATCH] bin/init: Fix REST gateway polling a834998a34fc5ecf7115f5aba9c10a1258491ed8 defect. Wrong ENV variable with gateway network endpoint was used. This caused: ``` curl: (2) no URL specified ``` Signed-off-by: Leonard Lyubich --- bin/init-aio.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/init-aio.sh b/bin/init-aio.sh index f38d25c..8e53e88 100755 --- a/bin/init-aio.sh +++ b/bin/init-aio.sh @@ -58,7 +58,7 @@ if [ $IS_START_REST = "true" ]; then . /config/rest.env /usr/bin/neofs-rest-gw & - while [[ "$(curl -s -o /dev/null -w %{http_code} $REST_GW_SERVER_LISTEN_ADDRESS)" != "307" ]]; + while [[ "$(curl -s -o /dev/null -w %{http_code} $REST_GW_SERVER_ENDPOINTS_0_ADDRESS)" != "307" ]]; do sleep 1; done