From 7deddaf8f7c8cf8e890a79df5d32e3cc96762323 Mon Sep 17 00:00:00 2001 From: lissav <lissav@8638fb3e-16cb-4fca-ae20-7b5d299a9bcd> Date: Tue, 19 Feb 2008 18:25:39 +0000 Subject: [PATCH] Add -p flag to mkdir so no errors if directory exists git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@528 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/xCAT.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index 904d81412..b5d6594bf 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -97,7 +97,7 @@ if [ "$1" = "1" ]; then #Only if installing for the fist time.. if [ ! -r /root/.ssh/id_rsa.pub ]; then ssh-keygen -t rsa -q -b 2048 -N "" -f /root/.ssh/id_rsa fi - mkdir /install/postscripts/.ssh + mkdir -p /install/postscripts/.ssh cp /root/.ssh/id_rsa.pub /install/postscripts/.ssh/authorized_keys mkdir -p /var/log/consoles @@ -127,17 +127,17 @@ 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 + mkdir -p /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 + mkdir -p /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 + mkdir -p /install/postscripts/.xcat cp -r /root/.xcat/* /install/postscripts/.xcat #Zap the almost certainly wrong pxelinux.cfg file rm /tftpboot/pxelinux.cfg/default