From 09c1993c5e7f6942d88f1b8da678df888ae45c35 Mon Sep 17 00:00:00 2001 From: nott Date: Mon, 29 Mar 2010 17:54:12 +0000 Subject: [PATCH] Set PATH etc. in post processing. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5599 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/xCAT-client.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xCAT-client/xCAT-client.spec b/xCAT-client/xCAT-client.spec index e574a0ecc..f8265a60e 100644 --- a/xCAT-client/xCAT-client.spec +++ b/xCAT-client/xCAT-client.spec @@ -228,6 +228,16 @@ 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 fi + +if ! egrep XCATROOT /etc/profile > /dev/null 2>&1 ; then +echo " +# xCAT setup +XCATROOT=$RPM_INSTALL_PREFIX0 +PATH=\$PATH:\$XCATROOT/bin:\$XCATROOT/sbin +MANPATH=\$MANPATH:\$XCATROOT/share/man: +export XCATROOT PATH MANPATH +" >>/etc/profile +fi %endif %preun