File tree Expand file tree Collapse file tree 2 files changed +10
-13
lines changed
modules/run/artifacts/opt/jboss/container/java/run Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
# Fail on a single failed command
4
4
set -eo pipefail
5
5
6
+ export JBOSS_CONTAINER_UTIL_LOGGING_MODULE=" ${JBOSS_CONTAINER_UTIL_LOGGING_MODULE-/ opt/ jboss/ container/ util/ logging} "
7
+ export JBOSS_CONTAINER_JAVA_RUN_MODULE=" ${JBOSS_CONTAINER_JAVA_RUN_MODULE-/ opt/ jboss/ container/ java/ run} "
8
+
9
+ # Default the application dir to the S2I deployment dir
10
+ if [ -z " $JAVA_APP_DIR " ]
11
+ then JAVA_APP_DIR=/deployments
12
+ fi
13
+
6
14
source " $JBOSS_CONTAINER_UTIL_LOGGING_MODULE /logging.sh"
7
15
8
16
# ==========================================================
@@ -93,15 +101,10 @@ load_env() {
93
101
94
102
# Check also $JAVA_APP_DIR. Overrides other defaults
95
103
# It's valid to set the app dir in the default script
96
- if [ -z " ${JAVA_APP_DIR} " ]; then
97
- # XXX: is this correct? This is defaulted above to /deployments. Should we
98
- # define a default to the old /opt/java-run?
99
- JAVA_APP_DIR=" ${JBOSS_CONTAINER_JAVA_RUN_MODULE} "
100
- else
101
- if [ -f " ${JAVA_APP_DIR} /${run_env_sh} " ]; then
104
+ if [ -f " ${JAVA_APP_DIR} /${run_env_sh} " ]; then
102
105
source " ${JAVA_APP_DIR} /${run_env_sh} "
103
- fi
104
106
fi
107
+
105
108
export JAVA_APP_DIR
106
109
107
110
# JAVA_LIB_DIR defaults to JAVA_APP_DIR
You can’t perform that action at this time.
0 commit comments