Only update profile on first install

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3241 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2009-04-22 16:57:35 +00:00
parent f99c4f51c4
commit 4084303555

View File

@ -202,13 +202,14 @@ setenv PERL_BADLANG 0" >/etc/profile.d/xcat.csh
chmod 755 /etc/profile.d/xcat.*
%else
if [ "$1" = "1" ]; then #Only if installing for the first time..
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