diff --git a/packaging/datadog-agent/source/install_agent.sh b/packaging/datadog-agent/source/install_agent.sh index c30b5dcd0d..fc0b693e90 100755 --- a/packaging/datadog-agent/source/install_agent.sh +++ b/packaging/datadog-agent/source/install_agent.sh @@ -47,6 +47,8 @@ fi if [ -n "$DD_API_KEY" ]; then apikey=$DD_API_KEY +elif [ $1 ]; then + apikey=$1 fi if [ -n "$DD_INSTALL_ONLY" ]; then