Check for environment file entry before adding new one.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5005 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2010-01-21 13:35:17 +00:00
parent bd1a9474f1
commit d37927d6f2

View File

@ -222,7 +222,7 @@ EOF
chmod 755 /etc/profile.d/xcat.*
%else
if [ "$1" = "1" ]; then #Only if installing for the first time..
if ! egrep PERL5LIB /etc/environment > /dev/null 2>&1 ; then
echo "
# xCAT Perl setup
PERL5LIB=/usr/opt/perl5/lib/5.8.2:/usr/opt/perl5/lib/5.8.2/aix-thread-multi:/usr/opt/perl5/lib/site_perl/5.8.2:/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi " >>/etc/environment