File tree Expand file tree Collapse file tree
kernel-slim/helpers/build Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ set -Eeo pipefail
66
77function main() {
88 # #Define variables for XML snippets source and target paths
9- WLP_INSTALL_DIR=/opt/ol/wlp
109 SHARED_CONFIG_DIR=${WLP_INSTALL_DIR} /usr/shared/config
1110 SHARED_RESOURCE_DIR=${WLP_INSTALL_DIR} /usr/shared/resources
1211
@@ -93,7 +92,7 @@ function main() {
9392 # Apply interim fixes found in /opt/ol/fixes
9493 # Fixes recommended by IBM, such as to resolve security vulnerabilities, are also included in /opt/ol/fixes
9594 # Note: This step should be done once needed features are enabled and installed.
96- find /opt/ol/fixes -type f -name " *.jar " -print0 | sort -z | xargs -0 -n 1 -r -I {} java -jar {} --installLocation $WLP_INSTALL_DIR
95+ installFixes
9796
9897 # Force the server.xml to be processed by updating its timestamp
9998 touch /config/server.xml
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ set -Eeo pipefail
66
77function main() {
88 # #Define variables for XML snippets source and target paths
9- WLP_INSTALL_DIR=/opt/ol/wlp
109 SHARED_CONFIG_DIR=${WLP_INSTALL_DIR} /usr/shared/config
1110 SHARED_RESOURCE_DIR=${WLP_INSTALL_DIR} /usr/shared/resources
1211
@@ -93,7 +92,7 @@ function main() {
9392 # Apply interim fixes found in /opt/ol/fixes
9493 # Fixes recommended by IBM, such as to resolve security vulnerabilities, are also included in /opt/ol/fixes
9594 # Note: This step should be done once needed features are enabled and installed.
96- find /opt/ol/fixes -type f -name " *.jar " -print0 | sort -z | xargs -0 -n 1 -r -I {} java -jar {} --installLocation $WLP_INSTALL_DIR
95+ installFixes
9796
9897 # Force the server.xml to be processed by updating its timestamp
9998 touch /config/server.xml
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ set -Eeo pipefail
66
77function main() {
88 # #Define variables for XML snippets source and target paths
9- WLP_INSTALL_DIR=/opt/ol/wlp
109 SHARED_CONFIG_DIR=${WLP_INSTALL_DIR} /usr/shared/config
1110 SHARED_RESOURCE_DIR=${WLP_INSTALL_DIR} /usr/shared/resources
1211
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33function main() {
4+ WLP_TYPE=ol
5+ WLP_INSTALL_DIR=/opt/$WLP_TYPE /wlp
46 if [ " $VERBOSE " != " true" ]; then
57 exec > /dev/null
68 fi
@@ -16,7 +18,7 @@ function showLogs() {
1618
1719function installFixes() {
1820 if [ ! -f " /logs/fixes.log" ]; then
19- find /opt/ol /fixes -type f -name " *.jar" -print0 | sort -z | xargs -0 -r -I {} java -jar {} --installLocation $WLP_INSTALL_DIR
21+ find /opt/$WLP_TYPE /fixes -type f -name " *.jar" -print0 | sort -z | xargs -0 -n 1 -r -I {} java -jar {} --installLocation $WLP_INSTALL_DIR
2022 echo " installFixes has been run" > /logs/fixes.log
2123 fi
2224}
You can’t perform that action at this time.
0 commit comments