From ff2ae9ad23acc25880c97c1052d8a1bdc46b660c Mon Sep 17 00:00:00 2001 From: nott Date: Tue, 4 Mar 2008 14:15:38 +0000 Subject: [PATCH] The call to /etc/profile.d/xcat.sh should be for LINUX ONLY. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@656 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/xCAT.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index d0997cc9d..e76f1ffa3 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -78,10 +78,12 @@ mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT cp LICENSE.html $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT %post -. /etc/profile.d/xcat.sh %ifnos linux +. /etc/profile $RPM_INSTALL_PREFIX0/sbin/xcatconfig %else +. /etc/profile.d/xcat.sh + if [ ! -f /install/postscripts/hostkeys/ssh_host_key ]; then echo Generating SSH1 RSA Key... /usr/bin/ssh-keygen -t rsa1 -f /install/postscripts/hostkeys/ssh_host_key -C '' -N ''