Skip to content

Commit 952a1a5

Browse files
committed
Correct file permissions of MII with OpenShift when base filesystem uses 077
1 parent 1f30dd2 commit 952a1a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

imagetool/src/main/resources/docker-files/Rebase_Image.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ RUN mkdir -p {{domain_home}}
8080
{{/modelOnly}}
8181

8282
{{#domainGroupAsUser}}
83-
RUN chmod g=u {{{domain_home}}}
83+
RUN chmod -R g=u {{{domain_home}}}
8484
{{/domainGroupAsUser}}
8585

8686
WORKDIR {{{work_dir}}}

imagetool/src/main/resources/docker-files/final-wdt-copy.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
COPY --from=wdt_build --chown={{userid}}:{{groupid}} {{wdt_model_home}} {{wdt_model_home}}/
1212
{{/isWdtModelHomeOutsideWdtHome}}
1313
{{#domainGroupAsUser}}
14-
RUN chmod g=u {{{domain_parent}}} {{{wdt_home}}} {{{wdt_model_home}}}
14+
RUN chmod -R g=u {{{domain_parent}}} {{{wdt_home}}} {{{wdt_model_home}}}
1515
{{/domainGroupAsUser}}
1616
{{/modelOnly}}
1717
{{^modelOnly}}
1818
COPY --from=wdt_build --chown={{userid}}:{{groupid}} {{{domain_home}}} {{{domain_home}}}/
1919
{{#domainGroupAsUser}}
20-
RUN chmod g=u {{{domain_home}}}
20+
RUN chmod -R g=u {{{domain_home}}}
2121
{{/domainGroupAsUser}}
2222
{{/modelOnly}}

0 commit comments

Comments
 (0)