Skip to content

Commit 1f30dd2

Browse files
committed
Merge branch 'opatch-log-stdout' into 'main'
print the OPatch log to stdout on patching failure to help user determine the cause See merge request weblogic-cloud/weblogic-image-tool!462
2 parents 172dc2a + 389bfa0 commit 1f30dd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

imagetool/src/main/resources/docker-files/fmw-patching.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
# Apply all patches provided at the same time
2020
RUN {{{oracle_home}}}/OPatch/opatch napply -silent -oh {{{oracle_home}}} -nonrollbackable -phBaseDir {{{tempDir}}}/patches \
2121
&& test $? -eq 0 \
22-
&& {{{oracle_home}}}/OPatch/opatch util cleanup -silent -oh {{{oracle_home}}}
22+
&& {{{oracle_home}}}/OPatch/opatch util cleanup -silent -oh {{{oracle_home}}} \
23+
|| (cat {{{oracle_home}}}/cfgtoollogs/opatch/opatch*.log && exit 1)
2324
{{/strictPatchOrdering}}
2425
{{#strictPatchOrdering}}
2526
# Apply one patch at a time in the order they were specified

0 commit comments

Comments
 (0)