This is a discussion on SuSE 9.1 and /etc/profile.local within the Linux Administration forums, part of the Linux Forums category; I just installed SuSE 9.1 and am having trouble getting my PATH the way I want it. I have ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I just installed SuSE 9.1 and am having trouble getting my PATH the
way I want it. I have a /etc/profile.local in place that looks as follows: # /etc/profile.local # Java environment # Sun JVM JAVA_HOME=/opt/sunMicrosystems/java export JAVA_HOME # Modify Path test -L $JAVA_HOME && PATH=$JAVA_HOME/bin:$PATH export PATH When I echo $PATH I get the following: /opt/sunMicrosystems/java/bin:/opt/sunMicrosystems/java/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin I don't like seeing /opt/sunMicrosystems/java/bin twice. I checked /etc/profile and the only reference to profile.local is as: if test "$is" != "ash" ; then # # Source some aliases which provide help for DOS users # #test -e /etc/profile.dos && . /etc/profile.dos # # And now let's see if there is a local profile # (for options defined by your sysadmin, not SuSE Linux) # test -s /etc/profile.local && . /etc/profile.local fi My question is why is /opt/sunMicrosystems/java/bin showing up twice in my PATH? It appears that profile is sourcing profile.local just once. By the way, I took the profile.local from my SuSE 7.2 system where it works fine. Thanks in advance, FGB |