From 4cad680c226eb2103746d253302ffd56ce12a99c Mon Sep 17 00:00:00 2001 From: Eric Williams Date: Wed, 25 Mar 2020 09:11:25 -0400 Subject: [PATCH] fix(git): Add correct permissions for shell scripts like git (#673) (#685) Fixes https://github.com/eclipse/che/issues/16084 Change-Id: I5110ae857e6849b8b8d0ecda67903b612ab59616 Signed-off-by: Florent Benoit --- dockerfiles/theia/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dockerfiles/theia/Dockerfile b/dockerfiles/theia/Dockerfile index 87dc8271b..e425a1507 100644 --- a/dockerfiles/theia/Dockerfile +++ b/dockerfiles/theia/Dockerfile @@ -98,7 +98,10 @@ RUN if [ -z $GITHUB_TOKEN ]; then unset GITHUB_TOKEN; fi && \ COPY asset-untagged-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 + ###