Have xCAT metapackage source the profile.d explicitly, so install postscripts will work as intended

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@238 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-01-10 13:23:35 +00:00
parent 215366db2b
commit 74544b25c0

View File

@ -43,6 +43,9 @@ mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT
cp LICENSE.html $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT
%post
if [ -f /etc/profile.d/xcat.sh ]; then
. /etc/profile.d/xcat.sh
fi
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 ''