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:
parent
f99c4f51c4
commit
4084303555
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user