Skip to content

Commit

Permalink
Agent entrypoint fix (elastic#20187)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrsMark authored Jul 23, 2020
1 parent ab41986 commit 77e76a9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ function enroll(){
if [ $exitCode -ne 0 ]; then
exit $exitCode
fi

apikey=$(echo $enrollResp | jq -r '.item.api_key')
fi
apikey=$(echo $enrollResp | jq -r '.item.api_key')
echo $apikey

./{{ .BeatName }} enroll ${KIBANA_HOST:-http://localhost:5601} $apikey -f
Expand Down

0 comments on commit 77e76a9

Please sign in to comment.