From 061adc604aba39dc10c03fb6cfab92e29128dd41 Mon Sep 17 00:00:00 2001 From: Venkatesh Babu Date: Fri, 10 May 2024 17:28:08 +0530 Subject: [PATCH] Registry id and url for all in one install --- install/beckn-onix.sh | 2 +- install/scripts/update_gateway_details.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/install/beckn-onix.sh b/install/beckn-onix.sh index 984becc..429385a 100755 --- a/install/beckn-onix.sh +++ b/install/beckn-onix.sh @@ -73,7 +73,7 @@ install_gateway() { if [[ $1 && $2 ]]; then bash scripts/update_gateway_details.sh $1 $2 else - bash scripts/update_gateway_details.sh registry + bash scripts/update_gateway_details.sh http://registry:3030 fi echo "${GREEN}................Installing Gateway service................${NC}" start_container $gateway_docker_compose_file gateway diff --git a/install/scripts/update_gateway_details.sh b/install/scripts/update_gateway_details.sh index 2eec117..5bcb187 100755 --- a/install/scripts/update_gateway_details.sh +++ b/install/scripts/update_gateway_details.sh @@ -90,6 +90,9 @@ if [[ $1 ]]; then registry_id=$(echo "$1" | sed 's/http:\/\///') fi fi + if [[ $registry_id = "registry:3030" ]]; then + registry_id="registry" + fi fi if [[ $2 ]]; then