From a43e2480ed7852cf3b9fd028bcdfd7fbb4dfc671 Mon Sep 17 00:00:00 2001 From: jhonas Date: Wed, 9 Feb 2022 11:38:21 +0100 Subject: [PATCH] Check for deprecated and new SDC_URL of cgn-1 DC --- template/pkgs/utils/triton-docker.env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/pkgs/utils/triton-docker.env.sh b/template/pkgs/utils/triton-docker.env.sh index 285b533..a90aa42 100644 --- a/template/pkgs/utils/triton-docker.env.sh +++ b/template/pkgs/utils/triton-docker.env.sh @@ -10,7 +10,7 @@ triton_account_uuid="$(triton account get --json | json id)" # set the CNS (container name service) base for auto-generated DNS records # in public and private networks # note, this makes assumptions that only work with Greenbaum's public cloud -if env | grep -q "SDC_URL=https://api.greenbaum.cloud"; then +if env | grep -q -E "SDC_URL=https://api.greenbaum.cloud|SDC_URL=https://cgn-1.api.greenbaum.cloud"; then export TRITON_CNS_SEARCH_DOMAIN_PUBLIC="${triton_account_uuid}.cgn-1.greenbaum.zone" export TRITON_CNS_SEARCH_DOMAIN_PRIVATE="${triton_account_uuid}.cgn-1.int.greenbaum.zone" export TRITON_DC=cgn-1