Skip to content

Commit 389bfa0

Browse files
committed
print the OPatch log to stdout on patching failure to help user determine the cause
1 parent 172dc2a commit 389bfa0

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)