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/trunk@11927 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2012-03-21 09:16:13 +00:00
parent 13ad428934
commit a7b456d288

View File

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