From b9e73b46ee57d0d4116bbb294f3a09a110b4badc Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 12 Feb 2008 15:21:09 +0000 Subject: [PATCH] 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 --- xCAT/xCAT.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index 260441f8a..54a9d6902 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -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