From 4084303555bd2ffd1d2245eb069ba83a096595df Mon Sep 17 00:00:00 2001 From: nott Date: Wed, 22 Apr 2009 16:57:35 +0000 Subject: [PATCH] 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 --- xCAT-client/xCAT-client.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-client/xCAT-client.spec b/xCAT-client/xCAT-client.spec index 39bc67052..ad2063754 100644 --- a/xCAT-client/xCAT-client.spec +++ b/xCAT-client/xCAT-client.spec @@ -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