Skip to content

Commit

Permalink
Add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasm-ttd committed Sep 25, 2024
1 parent d20e318 commit c1e51db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/aws/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}")
Expand Down

0 comments on commit c1e51db

Please sign in to comment.