Skip to content

Commit 2c2d2b5

Browse files
kabicinKirby Chin
authored andcommitted
Define WLP_INSTALL_DIR in utils.sh
1 parent b21e808 commit 2c2d2b5

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

releases/latest/beta/helpers/build/configure.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ set -Eeo pipefail
66

77
function 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

releases/latest/full/helpers/build/configure.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ set -Eeo pipefail
66

77
function 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

releases/latest/kernel-slim/helpers/build/configure.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ set -Eeo pipefail
66

77
function 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

releases/latest/kernel-slim/helpers/build/internal/utils.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash
22

33
function 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

1719
function 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
}

0 commit comments

Comments
 (0)