Skip to content

Commit

Permalink
fix(git): Add correct permissions for shell scripts like git (eclipse…
Browse files Browse the repository at this point in the history
…-che#673)

Fixes eclipse-che/che#16084

Change-Id: I5110ae857e6849b8b8d0ecda67903b612ab59616
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
  • Loading branch information
benoitf authored and ericwill committed Mar 25, 2020
1 parent 18f5d8a commit 8fab9d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dockerfiles/theia/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ RUN if [ -z $GITHUB_TOKEN ]; then unset GITHUB_TOKEN; fi && \
COPY asset-untagged-c11870b25a17d20bb7a7-theia_yeoman_plugin.theia /home/theia-dev/theia-source-code/production/plugins/theia_yeoman_plugin.theia

# change permissions
RUN find production -exec sh -c "chgrp 0 {}; chmod g+rwX {}" \; 2>log.txt
RUN find production -exec sh -c "chgrp 0 {}; chmod g+rwX {}" \; 2>log.txt && \
# Add missing permissions on shell scripts of plug-ins
find /home/theia-dev/theia-source-code/production/plugins -name "*.sh" | xargs chmod +x



###
Expand Down

0 comments on commit 8fab9d7

Please sign in to comment.