From f8454ddfc51147b40063729b98c2ef931c695f01 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 23 Apr 2010 18:07:58 +0000 Subject: [PATCH] fix checks for cert directory where no longer applicable git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5874 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/copycerts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/xCAT-server/sbin/copycerts b/xCAT-server/sbin/copycerts index 6500d49d7..8fb5abb9d 100644 --- a/xCAT-server/sbin/copycerts +++ b/xCAT-server/sbin/copycerts @@ -77,13 +77,8 @@ sub copyCertstoSN { mkdir("/etc/xcat/ca", 0755); } - if (!(-d "/etc/xcat/ca/certs")) - { - mkdir("/etc/xcat/ca/certs", 0755); - } `cp -f -rp /xcatpost/ca/* /etc/xcat/ca`; `chmod 0600 /etc/xcat/ca/*`; - `chmod 0600 /etc/xcat/ca/certs/*`; } else { @@ -91,7 +86,7 @@ sub copyCertstoSN } if (xCAT::Utils->isAIX()) { - if (-d "/xcatpost/cert") + if (-d "/xcatpost/_xcat") { if (!(-d "/etc/xcat")) { @@ -106,7 +101,7 @@ sub copyCertstoSN } else { - xCAT::MsgUtils->message('S', "/xcatpost/cert directory does not exist\n"); + xCAT::MsgUtils->message('S', "/xcatpost/_xcat directory does not exist\n"); } } return $rc;