Skip to content

Commit 4a33f6d

Browse files
committed
Allow overwriting JAVA_APP_DIR
without this run-java.sh always overwrites user-provided JAVA_APP_DIR from run-env.sh Signed-off-by: Christoph Schulz <[email protected]>
1 parent 9a53380 commit 4a33f6d

File tree

1 file changed

+4
-2
lines changed
  • modules/run/artifacts/opt/jboss/container/java/run

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/sh
22

3-
# Set the application dir to the S2I deployment dir
4-
JAVA_APP_DIR=/deployments
3+
# Default the application dir to the S2I deployment dir
4+
if [ -z "$JAVA_APP_DIR" ]
5+
then JAVA_APP_DIR=/deployments
6+
fi

0 commit comments

Comments
 (0)