From 00471f7bbd7eb88cb6afcd3be554a0ea38380e41 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 13 Feb 2009 16:47:41 +0000 Subject: [PATCH] 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 --- xCAT/xCAT.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index 226be71d2..d32765c4b 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -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...