From c00ac45f26183655abcc98adec0516f4071ea80a Mon Sep 17 00:00:00 2001 From: nott Date: Fri, 1 Feb 2008 16:34:30 +0000 Subject: [PATCH] Echo in responses to certificate setup scripts. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@377 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/sbin/xcatconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server-2.0/sbin/xcatconfig b/xCAT-server-2.0/sbin/xcatconfig index eca14e1b4..e946ede46 100644 --- a/xCAT-server-2.0/sbin/xcatconfig +++ b/xCAT-server-2.0/sbin/xcatconfig @@ -373,7 +373,7 @@ if (( ! -r "/etc/xcat/policy.sqlite" ) || $::FORCE) { # if (( ! -d "/etc/xcat/ca" ) || $::FORCE) { xCAT::MsgUtils->message('I', "\nSetting up basic certificates. Respond with a \'y\' when prompted.\n\n"); - my $cmd = "$::XCATROOT/share/xcat/scripts/setup-xcat-ca.sh 'xCAT CA'"; + my $cmd = "echo 'y\ny\ny\ny' |$::XCATROOT/share/xcat/scripts/setup-xcat-ca.sh 'xCAT CA'"; xCAT::MsgUtils->message('I', "Running $cmd\n"); my $rc = system($cmd); if ($rc >> 8) @@ -386,7 +386,7 @@ if (( ! -d "/etc/xcat/ca" ) || $::FORCE) { if (( ! -d "/etc/xcat/cert" ) || $::FORCE) { - my $cmd = "$::XCATROOT/share/xcat/scripts/setup-server-cert.sh $hname"; + my $cmd = "echo 'y\ny\ny\ny' |$::XCATROOT/share/xcat/scripts/setup-server-cert.sh $hname"; xCAT::MsgUtils->message('I', "Running $cmd\n"); my $rc = system($cmd); if ($rc >> 8) @@ -399,7 +399,7 @@ if (( ! -d "/etc/xcat/cert" ) || $::FORCE) { if ( ( ! -r "$::root/.xcat/client-key.pem") || $::FORCE){ - my $cmd = "$::XCATROOT/share/xcat/scripts/setup-local-client.sh root"; + my $cmd = "echo 'y\ny\ny\ny' |$::XCATROOT/share/xcat/scripts/setup-local-client.sh root"; xCAT::MsgUtils->message('I', "Running $cmd\n"); my $rc = system($cmd); if ($rc >> 8)