SuSE 9.1 and /etc/profile.local

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 ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-13-2004
FGB
 
Posts: n/a
Default SuSE 9.1 and /etc/profile.local

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:51 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0