Skip to content

Commit

Permalink
[Elastic Agent] Fix docker entrypoint for elastic-agent. (#24155) (#2…
Browse files Browse the repository at this point in the history
…4163)

* Fix docker entrypoint for elastic-agent.

* Add changelog entry.

(cherry picked from commit 239f243)
  • Loading branch information
blakerouse authored Feb 23, 2021
1 parent 4568d55 commit 950b1c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function enroll(){
insecure_flag="--insecure"
fi

./{{ .BeatName }} enroll ${insecure_flag} ${KIBANA_HOST:-http://localhost:5601} $apikey -f
./{{ .BeatName }} enroll ${insecure_flag} -f --url=${KIBANA_HOST:-http://localhost:5601} --enrollment-token=$apikey
}

if [[ -n "${FLEET_SETUP}" ]] && [[ ${FLEET_SETUP} == 1 ]]; then setup; fi
Expand Down
1 change: 1 addition & 0 deletions x-pack/elastic-agent/CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
- Fix issues with dynamic inputs and conditions {pull}23886[23886]
- Select default agent policy if no enrollment token provided. {pull}23973[23973]
- Fix bad substitution of API key. {pull}24036[24036]
- Fix docker enrollment issue related to Fleet Server change. {pull}24155[24155]

==== New features

Expand Down

0 comments on commit 950b1c4

Please sign in to comment.