diff --git a/xCAT-client-2.0/xCAT-client.spec b/xCAT-client-2.0/xCAT-client.spec index 3bb4b0543..b9948bce5 100644 --- a/xCAT-client-2.0/xCAT-client.spec +++ b/xCAT-client-2.0/xCAT-client.spec @@ -118,6 +118,15 @@ echo "setenv XCATROOT \"$RPM_INSTALL_PREFIX0\" setenv PATH \${PATH}:\${XCATROOT}/bin:\${XCATROOT}/sbin setenv MANPATH \${MANPATH}:\${XCATROOT}/share/man" >/etc/profile.d/xcat.csh chmod 755 /etc/profile.d/xcat.* + +%else +echo " +# xCAT setup +XCATROOT=$RPM_INSTALL_PREFIX0 +PATH=\$PATH:\$XCATROOT/bin:\$XCATROOT/sbin +MANPATH=\$MANPATH:\$XCATROOT/share/man +export XCATROOT PATH MANPATH" >>/etc/profile + %endif %preun