Skip to content

Commit

Permalink
Update docker-entrypoint.elastic-agent.tmpl (elastic#19273)
Browse files Browse the repository at this point in the history
`FLEET_ENROLLMENT_TOKEN` should not be checked to be equal
 to `1` since it contains token's value.
  • Loading branch information
ChrsMark authored Jun 18, 2020
1 parent 5d95c4b commit cdbfe48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function enroll(){
local enrollResp
local apiKey

if [[ -n "${FLEET_ENROLLMENT_TOKEN}" ]] && [[ ${FLEET_ENROLLMENT_TOKEN} == 1 ]]; then
if [[ -n "${FLEET_ENROLLMENT_TOKEN}" ]]; then
apikey = "${FLEET_ENROLLMENT_TOKEN}"
else
enrollResp=$(curl ${KIBANA_HOST:-http://localhost:5601}/api/ingest_manager/fleet/enrollment-api-keys \
Expand Down

0 comments on commit cdbfe48

Please sign in to comment.