Skip to content

Commit

Permalink
fix args
Browse files Browse the repository at this point in the history
  • Loading branch information
timolegros committed Oct 17, 2024
1 parent 2a44413 commit 0f8bd32
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/datadog-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ fi
# find "$DD_CONF_DIR"/conf.d -name "conf.yaml.default" -exec mv {} {}_disabled \;
#fi

# Update the Postgres configuration from above using the Heroku application environment variable
if [ "$DD_LOG_LEVEL_LOWER" == "debug" ]; then
echo "[DEBUG] DD_ENABLE_HEROKU_POSTGRES: $DD_ENABLE_HEROKU_POSTGRES"
fi
Expand Down Expand Up @@ -109,7 +108,6 @@ if [ "$DD_ENABLE_HEROKU_POSTGRES" == "true" ]; then
unset IFS
fi

# Update the Redis configuration from above using the Heroku application environment variable
if [ "$DD_LOG_LEVEL_LOWER" == "debug" ]; then
echo "[DEBUG] DD_ENABLE_HEROKU_REDIS: $DD_ENABLE_HEROKU_REDIS"
fi
Expand Down Expand Up @@ -172,8 +170,8 @@ if [ -n "$DISABLE_DATADOG_AGENT" ]; then
echo "The Datadog Agent has been disabled. Unset the DISABLE_DATADOG_AGENT or set missing environment variables."
else
if [ "$APP_ENV" = "production" ] || [ "$ENABLE_DATADOG_AGENT" = "true" ]; then
datadog-agent run -C $DATADOG_CONF &
/opt/datadog-agent/embedded/bin/trace-agent -C $DATADOG_CONF &
datadog-agent run -c $DATADOG_CONF &
/opt/datadog-agent/embedded/bin/trace-agent -c $DATADOG_CONF &
/opt/datadog-agent/embedded/bin/process-agent --cfgpath $DATADOG_CONF &
fi
fi
Expand Down

0 comments on commit 0f8bd32

Please sign in to comment.