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