From d37927d6f20902effa227f513c8574dfe992b69a Mon Sep 17 00:00:00 2001 From: nott Date: Thu, 21 Jan 2010 13:35:17 +0000 Subject: [PATCH] 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 --- xCAT-client/xCAT-client.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-client/xCAT-client.spec b/xCAT-client/xCAT-client.spec index 8e655fc5b..edafa31db 100644 --- a/xCAT-client/xCAT-client.spec +++ b/xCAT-client/xCAT-client.spec @@ -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