From eb59be68848df54178aee935f4b3f53f531544b5 Mon Sep 17 00:00:00 2001 From: John White Date: Wed, 2 Mar 2005 16:24:12 +0000 Subject: [PATCH] Change the behaviour of the CA cert and signing policy file locations so as to exclude /etc/grid-security/certificates as a default location. --- bin/generate-test-certificates.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/bin/generate-test-certificates.sh b/bin/generate-test-certificates.sh index ec8304c..168891d 100755 --- a/bin/generate-test-certificates.sh +++ b/bin/generate-test-certificates.sh @@ -485,15 +485,6 @@ function create_all_test { ############################## main ################################ -# check the certificate directory... - -if [ -! -z $X509_CERT_DIR ] -then - echo "Certificate directory set to $X509_CERT_DIR"; -else - X509_CERT_DIR="/etc/grid-security/certificates"; - echo "Certificate directory set to $X509_CERT_DIR"; -fi if [ "$1" == "--all" ]; then CATYPES='trusted fake big expired' ALL='yes' @@ -517,6 +508,16 @@ fi mkdir -p $TARGETDIR +# check the certificate directory... + +X509_CERT_DIR=${TARGETDIR}/grid-security/certificates + +if [ ! -d $X509_CERT_DIR ] +then + mkdir -p $X509_CERT_DIR +fi +echo "Certificate directory set to $X509_CERT_DIR"; + cd $TARGETDIR echo "Current directory now: `pwd`" echo "Config directory now: ${CONFIGDIR}" -- 1.8.2.3