Skip to content

Commit

Permalink
Update docker-entrypoint.elastic-agent.tmpl (elastic#19273) (elastic#…
Browse files Browse the repository at this point in the history
…19283)

`FLEET_ENROLLMENT_TOKEN` should not be checked to be equal
 to `1` since it contains token's value.

(cherry picked from commit cdbfe48)
  • Loading branch information
ChrsMark authored Jun 23, 2020
1 parent 5c6d004 commit 531023b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,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 531023b

Please sign in to comment.