mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
3bbf2d2c2a
Allow profile script to override jdk. Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
10 lines
314 B
Bash
10 lines
314 B
Bash
#!/bin/sh
|
|
export JAVA_HOME=/usr/lib%LIBDIRSUFFIX%/zulu-openjdk21
|
|
export MANPATH="${JAVA_HOME}/man:${MANPATH}"
|
|
export PATH="${JAVA_HOME}/bin:${PATH}"
|
|
|
|
if [ -z "$LD_LIBRARY_PATH" ]; then
|
|
export LD_LIBRARY_PATH="${JAVA_HOME}/lib/server"
|
|
else
|
|
export LD_LIBRARY_PATH="${JAVA_HOME}/lib/server:${LD_LIBRARY_PATH}"
|
|
fi
|