Merge "Move JRE_PATH/bin export to separate file"

This commit is contained in:
Jenkins 2015-09-18 13:30:51 +00:00 committed by Gerrit Code Review
commit 0caffda82b
3 changed files with 6 additions and 1 deletions

View File

@ -20,9 +20,12 @@ JRE_HOME=$1
JDK_HOME=$2
echo "export JAVA_HOME=$JRE_HOME" >> $JAVA_RC
echo "export PATH=$JRE_HOME/bin:\$PATH" >> $JAVA_RC
chmod +x $JAVA_RC
echo "export PATH=$JRE_HOME/bin:\$PATH" >> $JAVA_BIN_RC
echo "export PATH=$JDK_HOME/bin:\$PATH" >> $JAVA_BIN_RC
chmod +x $JAVA_BIN_RC
echo "Setting up alternatives for Java"
case "$DISTRO_NAME" in

View File

@ -7,4 +7,5 @@ set -eu
set -o pipefail
unset DIB_JAVA_DISTRO
unset JAVA_BIN_RC
unset JAVA_RC

View File

@ -1 +1,2 @@
export JAVA_RC="/etc/profile.d/99-java.sh"
export JAVA_BIN_RC="/etc/profile.d/98-java-bin.sh"