Test if CERT_ROOT directory exist and has certificates in it.
authorMarcel Poul <marcel.poul@cern.ch>
Thu, 8 Nov 2012 12:11:42 +0000 (12:11 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Thu, 8 Nov 2012 12:11:42 +0000 (12:11 +0000)
org.glite.testsuites.ctb/LB/tests/lb-generate-fake-proxy.sh

index 7d141b9..3551199 100755 (executable)
@@ -71,7 +71,7 @@ done
 
 PWD=`pwd`
 
-if [ ! -d "$CERTS_ROOT" ]; then
+if [ ! -d "$CERTS_ROOT" -o ! -e "${CERTS_ROOT}/trusted-certs/trusted_clientsha512.cert" ]; then
        echo "Generating fake proxy certificate - this may take a few minutes"
        echo ""