File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
operator/src/main/resources/scripts Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -1290,7 +1290,7 @@ restorAppAndLibs() {
1290
1290
# exclude standalone app module in wlsdeploy/applications/*.xml since it is included int zipped up domain config
1291
1291
# zip, the original xml in the archive may have wdt tokenized notations.
1292
1292
cd ${DOMAIN_HOME} || return 1
1293
- unzip ${IMG_ARCHIVES_ROOTDIR} /${file} -x " wlsdeploy/domainBin/*"
1293
+ unzip -o ${IMG_ARCHIVES_ROOTDIR} /${file} -x " wlsdeploy/domainBin/*"
1294
1294
if [ $? -ne 0 ] ; then
1295
1295
trace SEVERE " Domain Source Type is FromModel, error in extracting application archive ${IMG_ARCHIVES_ROOTDIR} /${file} "
1296
1296
return 1
@@ -1299,6 +1299,15 @@ restorAppAndLibs() {
1299
1299
1300
1300
}
1301
1301
1302
+ #
1303
+ restoreZippedDbWallets () {
1304
+ local count=$( find ${DOMAIN_HOME} /wlsdeploy/dbWallets/* /* .zip -type f 2> /dev/null | wc -l)
1305
+ if [ " $count " -gt 0 ] ; then
1306
+ find ${DOMAIN_HOME} /wlsdeploy/dbWallets/* /* .zip -type f | xargs -I % sh -c ' unzip -jo % -d $(dirname %) ; rm %'
1307
+ fi
1308
+ }
1309
+
1310
+
1302
1311
prepareMIIServer () {
1303
1312
1304
1313
trace " Model-in-Image: Creating domain home."
@@ -1341,6 +1350,9 @@ prepareMIIServer() {
1341
1350
trace " Model-in-Image: Restore domain config"
1342
1351
restoreDomainConfig || return 1
1343
1352
1353
+ trace " Model-in-image: Restore dbWallets zip"
1354
+
1355
+ restoreZippedDbWallets || return 1
1344
1356
return 0
1345
1357
}
1346
1358
You can’t perform that action at this time.
0 commit comments