From 658c947ca6def45f9253eafee7454dd4d8529000 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 21 Mar 2012 09:17:39 +0000 Subject: [PATCH] defect 3508456: add env vars XCATROOT and PATH in the /etc/environment for aix so that xcatd can be started successfully from /etc/inittab git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@11928 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 4ce5bbd1b..3f87d4bed 100644 --- a/xCAT-client/xCAT-client.spec +++ b/xCAT-client/xCAT-client.spec @@ -247,6 +247,16 @@ echo " 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/environment > /dev/null 2>&1 ; then +echo " +# xCAT setup +XCATROOT=$RPM_INSTALL_PREFIX0 +PATH=\$XCATROOT/bin:\$XCATROOT/sbin:$PATH +MANPATH=\$XCATROOT/share/man:\$MANPATH +export XCATROOT PATH MANPATH +" >> /etc/environment +fi + if ! egrep XCATROOT /etc/profile > /dev/null 2>&1 ; then echo " # xCAT setup