Where or how do I add something to the PATH system-wide?
I have a file called /etc/profile/java.sh that contains
#!/bin/sh
for file in /usr/java/*; do if [ -x $file/bin/java ] then export JAVA_HOME=$file break fi done unset file PATH=$PATH:$JAVA_HOME/bin
It's where it is rather than how it does it that's important. Look at /etc/profile to see how the files in /etc/profile.d are handled.
jch
-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list