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
This commit is contained in:
parent
45560a3017
commit
7deddaf8f7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user