You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'fix-getwlsversion-and-matchmodelunzip' into 'main'
Fix how getWebLogicVersion is implemented and keep track of bin/lib contents...
See merge request weblogic-cloud/weblogic-kubernetes-operator!4682
(cherry picked from commit 0bcc038)
3e2fdf8 Fix how getWebLogicVersion is implemented and keep track of bin/lib contents...
# The following grep captures both "WebLogic Server" and "WebLogic Server for FMW"
510
-
local wlver="`grep 'name="WebLogic Server.*version='$reg_file \
511
-
| sed 's/.*version="\([0-9.]*\)".*/\1/g'`"
505
+
if [ $?-eq 0 ] ;then
506
+
wlver=$(cat /tmp/wlsversion.txt)
507
+
fi
512
508
513
509
echo${wlver:-"9999.9999.9999.9999"}
514
510
}
@@ -538,9 +534,9 @@ getMajorVersion()
538
534
# checkWebLogicVersion
539
535
# check if the WL version is supported by the Operator
540
536
# - skip check if SKIP_WL_VERSION_CHECK = "true"
541
-
# - log an error if WL version < 12.2.1.3
542
-
# - log an error if WL version == 12.2.1.3 && patch 29135930 is missing
543
-
# - you can override the required 12.2.1.3 patches by exporting
537
+
# - log an error if WL version < 12.2.1.3.0
538
+
# - log an error if WL version == 12.2.1.3.0 && patch 29135930 is missing
539
+
# - you can override the required 12.2.1.3.0 patches by exporting
544
540
# global WL12213REQUIREDPATCHES to an empty string or to other
545
541
# patch number(s)
546
542
# - return 1 if logged an error
@@ -549,11 +545,11 @@ checkWebLogicVersion()
549
545
{
550
546
[ "$SKIP_WL_VERSION_CHECK"="true" ] &&return 0
551
547
local cur_wl_ver="`getWebLogicVersion`"
552
-
local exp_wl_ver="12.2.1.3"
548
+
local exp_wl_ver="12.2.1.3.0"
553
549
local exp_wl_12213_patches="${WL12213REQUIREDPATCHES:-"29135930"}"
554
-
if versionEQ "$cur_wl_ver""12.2.1.3";then
550
+
if versionEQ "$cur_wl_ver""12.2.1.3.0";then
555
551
if! hasWebLogicPatches $exp_wl_12213_patches;then
556
-
trace SEVERE "The Operator requires that WebLogic version '12.2.1.3' have patch '$exp_wl_12213_patches'. To bypass this check, set env var SKIP_WL_VERSION_CHECK to 'true'."
552
+
trace SEVERE "The Operator requires that WebLogic version '12.2.1.3.0' have patch '$exp_wl_12213_patches'. To bypass this check, set env var SKIP_WL_VERSION_CHECK to 'true'."
0 commit comments