From c1e51dbd0c86be51567014bebe7c365d3ee370fd Mon Sep 17 00:00:00 2001 From: Thomas Manson Date: Wed, 25 Sep 2024 12:00:06 +1000 Subject: [PATCH] Add more logging --- scripts/aws/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/aws/entrypoint.sh b/scripts/aws/entrypoint.sh index 2cc2d69a0..5531b0b55 100755 --- a/scripts/aws/entrypoint.sh +++ b/scripts/aws/entrypoint.sh @@ -22,7 +22,7 @@ echo "Starting syslog-ng..." # -- load config from identity service echo "Loading config from identity service via proxy..." -{ set +x; } 2>/dev/null; { IDENTITY_SERVICE_CONFIG=$(curl -s -x socks5h://127.0.0.1:3305 http://127.0.0.1:27015/getConfig); set -x; } +IDENTITY_SERVICE_CONFIG=$(curl -s -x socks5h://127.0.0.1:3305 http://127.0.0.1:27015/getConfig); if jq -e . >/dev/null 2>&1 <<<"${IDENTITY_SERVICE_CONFIG}"; then echo "Identity service returned valid config" else @@ -31,7 +31,7 @@ else fi export OVERRIDES_CONFIG="/app/conf/config-overrides.json" -{ set +x; } 2>/dev/null; { echo "${IDENTITY_SERVICE_CONFIG}" > "${OVERRIDES_CONFIG}"; set -x; } +echo "${IDENTITY_SERVICE_CONFIG}" > "${OVERRIDES_CONFIG}"; export DEPLOYMENT_ENVIRONMENT=$(jq -r ".environment" < "${OVERRIDES_CONFIG}") export CORE_BASE_URL=$(jq -r ".core_base_url" < "${OVERRIDES_CONFIG}")