@@ -1320,26 +1320,18 @@ restoreAppAndLibs() {
1320
1320
exitOrLoop
1321
1321
fi
1322
1322
1323
- # expand the archive apps and shared lib to the wlsdeploy/* directories
1324
- # the config.xml is referencing them from that path
1325
- # exclude standalone app module in wlsdeploy/applications/*.xml since it is included int zipped up domain config
1326
- # zip, the original xml in the archive may have wdt tokenized notations.
1323
+ # expand the archive apps, shared lib and other wlsdeploy/* directories
1324
+ # exclude directories that are already expanded separately and already included in domain config zip
1325
+ # wlsdeploy/domainBin, wlsdeploy/domainLibraries, config/ - avoid confusion but no harm
1326
+ # wlsdeploy/applications/*.xml since it is included int zipped up domain config
1327
+ # zip, the original xml in the archive may have wdt tokenized notations.
1327
1328
cd ${DOMAIN_HOME} || return 1
1328
- unzip -o ${IMG_ARCHIVES_ROOTDIR} /${file} -x " wlsdeploy/domainBin/*"
1329
+ unzip -o ${IMG_ARCHIVES_ROOTDIR} /${file} -x " wlsdeploy/domainBin/*" -x " wlsdeploy/domainLibraries/* " -x " wlsdeploy/applications/*.xml " -x " config/* "
1329
1330
if [ $? -ne 0 ] ; then
1330
1331
trace SEVERE " Domain Source Type is FromModel, error in extracting application archive ${IMG_ARCHIVES_ROOTDIR} /${file} "
1331
1332
return 1
1332
1333
fi
1333
1334
1334
- if versionGE ${WDT_VERSION} " 4.0.0" ; then
1335
- trace INFO " Newer version of WDT 4.0.0 - check if there is old archive format of these files"
1336
- if [ -d ${DOMAIN_HOME} /wlsdeploy/custom ] ; then
1337
- # copy to under DOMAIN_HOME/config
1338
- mkdir -p ${DOMAIN_HOME} /config/wlsdeploy/custom
1339
- cp -R ${DOMAIN_HOME} /wlsdeploy/custom/* ${DOMAIN_HOME} /config/wlsdeploy/custom
1340
- fi
1341
-
1342
- fi
1343
1335
done
1344
1336
1345
1337
}
@@ -1350,10 +1342,6 @@ restoreZippedDbWallets() {
1350
1342
if [ " $count " -gt 0 ] ; then
1351
1343
find ${DOMAIN_HOME} /wlsdeploy/dbWallets/* /* .zip -type f | xargs -I % sh -c ' unzip -jo % -d $(dirname %) ; rm %'
1352
1344
fi
1353
- count=$( find ${DOMAIN_HOME} /config/wlsdeploy/dbWallets/* /* .zip -type f 2> /dev/null | wc -l)
1354
- if [ " $count " -gt 0 ] ; then
1355
- find ${DOMAIN_HOME} /config/wlsdeploy/dbWallets/* /* .zip -type f | xargs -I % sh -c ' unzip -jo % -d $(dirname %) ; rm %'
1356
- fi
1357
1345
}
1358
1346
1359
1347
@@ -1390,7 +1378,7 @@ prepareMIIServer() {
1390
1378
encrypt_decrypt_domain_secret " decrypt" ${DOMAIN_HOME} ${MII_PASSPHRASE}
1391
1379
1392
1380
# We restore the app and libs from the archive first, the domain zip may contain any standalone application
1393
- # modules under wlsdeploy/applications/*.xml. In the next step, if any standalon application module exists collected
1381
+ # modules under wlsdeploy/applications/*.xml. In the next step, if any standalone application module exists collected
1394
1382
# during introspection, it will overwrite the tokenized version in the archive.
1395
1383
1396
1384
trace " Model-in-Image: Restoring apps and libraries"
0 commit comments