Merge "Move JRE_PATH/bin export to separate file"
This commit is contained in:
commit
0caffda82b
@ -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
|
||||
|
@ -7,4 +7,5 @@ set -eu
|
||||
set -o pipefail
|
||||
|
||||
unset DIB_JAVA_DISTRO
|
||||
unset JAVA_BIN_RC
|
||||
unset JAVA_RC
|
||||
|
@ -1 +1,2 @@
|
||||
export JAVA_RC="/etc/profile.d/99-java.sh"
|
||||
export JAVA_BIN_RC="/etc/profile.d/98-java-bin.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user