Skip to content

Commit

Permalink
[Backport 7.59.x] [Dockerfiles] Check that otel-agent binary exists b…
Browse files Browse the repository at this point in the history
…efore running it (#30141)

Co-authored-by: mx-psi <[email protected]>
  • Loading branch information
agent-platform-auto-pr[bot] and mx-psi authored Oct 16, 2024
1 parent 772b794 commit 539dfe5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfiles/agent/entrypoint.d/otel-agent
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail

if [[ -x /opt/datadog-agent/embedded/bin/otel-agent ]]; then
exec /opt/datadog-agent/embedded/bin/otel-agent --config /etc/datadog-agent/otel-config.yaml
fi

0 comments on commit 539dfe5

Please sign in to comment.