File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
imagetool/src/main/resources/probe-env Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,24 @@ if [ -n "$ORACLE_HOME" ]; then
56
56
echo oracleHomeGroup=" $( stat -c ' %G' " $ORACLE_HOME " ) "
57
57
58
58
echo opatchVersion=" $( $ORACLE_HOME /OPatch/opatch version 2> /dev/null | grep -oE -m 1 ' ([[:digit:]\.]+)' ) "
59
- echo oraclePatches=" $( $ORACLE_HOME /OPatch/opatch lsinventory | awk ' {ORS=";"} /^Unique Patch ID/ {print $4} /^Patch description/ {x = substr($0, 21); print x} /^Patch\s*[0-9]+/ {print $2}' | sed ' s/;$//' ) "
59
+ echo oraclePatches=" $( $ORACLE_HOME /OPatch/opatch lsinventory |
60
+ awk ' BEGIN { ORS=";" }
61
+ /^Unique Patch ID/ { print $4 }
62
+ /^Patch description/ {
63
+ x = substr($0, 21)
64
+ print x
65
+ descriptionNeeded = 0
66
+ }
67
+ /^Patch\s*[0-9]+/ {
68
+ if (descriptionNeeded)
69
+ print "None"
70
+ print $2
71
+ descriptionNeeded = 1
72
+ }
73
+ END {
74
+ if (descriptionNeeded)
75
+ print "None"
76
+ }' | sed ' s/;$//' ) "
60
77
61
78
echo oracleInstalledProducts=" $( awk -F\" ' {ORS=","} /product-family/ { print $2 }' $ORACLE_HOME /inventory/registry.xml | sed ' s/,$//' ) "
62
79
fi
You can’t perform that action at this time.
0 commit comments