fix creation of new /etc/xcat/hostkeys dir
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2744 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
b8f791bb33
commit
00471f7bbd
@ -72,7 +72,6 @@ rm postscripts.tar
|
||||
|
||||
rm LICENSE.html
|
||||
mkdir -p postscripts/hostkeys
|
||||
mkdir -p /etc/xcat/hostkeys
|
||||
cd -
|
||||
cp %{SOURCE1} $RPM_BUILD_ROOT/etc/apache2/conf.d/xcat.conf
|
||||
cp %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd/conf.d/xcat.conf
|
||||
@ -105,6 +104,11 @@ if [ ! -d /var/ftp/tftpboot ]; then
|
||||
echo "/tftpboot /var/ftp/tftpboot none bind,defaults 0 0" >> /etc/fstab
|
||||
mount /var/ftp/tftpboot
|
||||
fi
|
||||
|
||||
if [ ! -d /etc/xcat/hostkeys ]; then
|
||||
mkdir -p /etc/xcat/hostkeys
|
||||
fi
|
||||
|
||||
# never generated the keys
|
||||
if [ ! -f /install/postscripts/hostkeys/ssh_host_key.pub ]; then
|
||||
echo Generating SSH1 RSA Key...
|
||||
|
Loading…
Reference in New Issue
Block a user