Skip to content

Commit

Permalink
Fix ownership of component specs in elastic-agent docker image (#5616)
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Lind <julien.lind@elastic.co>
  • Loading branch information
pchila and jlind23 authored Sep 27, 2024
1 parent 8e31a5d commit 1a10c3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ COPY --chown={{ .user }}:{{ .user }} --from=home {{ $beatHome }} {{ $beatHome }}
# create fleet.yml when running as non-root.
RUN chmod 0777 {{ $beatHome }} && \
usermod -d {{ $beatHome}} {{ .user }} && \
find {{ $beatHome }}/data/elastic-agent-{{ commit_short }}/components -name "*.yml*" -type f -exec chown root:root {} \; && \
find {{ $beatHome }}/data/elastic-agent-{{ commit_short }}/components -name "*.yml*" -type f -exec chown {{ .user }}:{{ .user }} {} \; && \
true

RUN mkdir /licenses
Expand Down

0 comments on commit 1a10c3d

Please sign in to comment.