Skip to content

Commit a2b4526

Browse files
authored
Back port WDT-107353, support new WDT archive using zipped wallet file (#4060)
1 parent 0d7ee35 commit a2b4526

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

operator/src/main/resources/scripts/modelInImage.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,13 @@ function restoreDomainConfig() {
583583
chmod u+x ${DOMAIN_HOME}/bin/*.sh ${DOMAIN_HOME}/*.sh || return 1
584584
}
585585

586+
restoreZippedDbWallets() {
587+
local count=$(find ${DOMAIN_HOME}/wlsdeploy/dbWallets/*/*.zip -type f 2>/dev/null | wc -l)
588+
if [ "$count" -gt 0 ] ; then
589+
find ${DOMAIN_HOME}/wlsdeploy/dbWallets/*/*.zip -type f | xargs -I % sh -c 'unzip -jo % -d $(dirname %) ; rm %'
590+
fi
591+
}
592+
586593
# Expands into the root directory the MII primordial domain, stored in one or more config maps
587594
function restorePrimordialDomain() {
588595
restoreEncodedTar "primordial_domainzip.secure" || return 1
@@ -1338,6 +1345,11 @@ function prepareMIIServer() {
13381345
# No need to have domainLibraries in domain home
13391346
rm -fr ${WLSDEPLOY_DOMAINLIB}
13401347
done
1348+
1349+
trace "Model-in-image: Restore dbWallets zip"
1350+
1351+
restoreZippedDbWallets || return 1
1352+
13411353
return 0
13421354
}
13431355

0 commit comments

Comments
 (0)