check whether file with sha2 cert exist, before generating new
authorMarcel Poul <marcel.poul@cern.ch>
Thu, 19 Apr 2012 13:40:35 +0000 (13:40 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Thu, 19 Apr 2012 13:40:35 +0000 (13:40 +0000)
org.glite.testsuites.ctb/CANL-C/tests/canl-generate-fake-proxy.sh

index fd3e2c0..04e3dac 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 ""