Add copy of /etc/xcat/ca /etc/xcat/cert and /root/.xcat to
/install/postscripts directory for support of Service Node setup. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@450 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
457d738a29
commit
b9e73b46ee
@ -127,12 +127,18 @@ if [ "$1" = "1" ]; then #Only if installing for the fist time..
|
||||
if [ ! -d /etc/xcat/ca ]; then
|
||||
yes | $RPM_INSTALL_PREFIX0/share/xcat/scripts/setup-xcat-ca.sh "xCAT CA"
|
||||
fi
|
||||
mkdir /install/postscripts/ca
|
||||
cp -r /etc/xcat/ca/* /install/postscripts/ca
|
||||
if [ ! -d /etc/xcat/cert ]; then
|
||||
yes | $RPM_INSTALL_PREFIX0/share/xcat/scripts/setup-server-cert.sh `hostname`
|
||||
fi
|
||||
mkdir /install/postscripts/cert
|
||||
cp -r /etc/xcat/cert/* /install/postscripts/cert
|
||||
if [ ! -r /root/.xcat/client-key.pem ]; then
|
||||
yes | $RPM_INSTALL_PREFIX0/share/xcat/scripts/setup-local-client.sh root
|
||||
fi
|
||||
mkdir /install/postscripts/.xcat
|
||||
cp -r /root/.xcat/* /install/postscripts/.xcat
|
||||
#Zap the almost certainly wrong pxelinux.cfg file
|
||||
rm /tftpboot/pxelinux.cfg/default
|
||||
XCATROOT=$RPM_INSTALL_PREFIX0 /etc/init.d/xcatd start
|
||||
|
Loading…
Reference in New Issue
Block a user