From: Zdeněk Šustr Date: Fri, 24 Feb 2012 11:31:01 +0000 (+0000) Subject: Generated lsc files. Not working yet. X-Git-Tag: gridsite-core_R_1_7_17~30 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=edf0f43238a0e3d26d25a13d37ceb7f6408fb08b;p=jra1mw.git Generated lsc files. Not working yet. --- diff --git a/org.glite.testsuites.ctb/gridsite/tests/gridsite-test-all.sh b/org.glite.testsuites.ctb/gridsite/tests/gridsite-test-all.sh index 6103847..0527f41 100755 --- a/org.glite.testsuites.ctb/gridsite/tests/gridsite-test-all.sh +++ b/org.glite.testsuites.ctb/gridsite/tests/gridsite-test-all.sh @@ -83,7 +83,7 @@ test_start # check_binaries printf "Testing if all binaries are available" -check_binaries curl rm chown openssl htcp htls htmv htcp htrm htls htls htproxydestroy +check_binaries curl rm chown openssl htcp htls htmv htcp htrm htls htls htproxydestroy awk sed openssl tail head if [ $? -gt 0 ]; then test_failed else @@ -389,18 +389,22 @@ EOF test_failed fi - printf "Setting up .lsc file and trying again" + printf "Setting up .lsc file and trying again\n" mkdir -p /etc/grid-security/vomsdir/voce/ - cat > /etc/grid-security/vomsdir/voce/voms1.egee.cesnet.cz.lsc < /etc/grid-security/vomsdir/voce/voms1.egee.cesnet.cz.lsc <&1 | grep "^depth" | sed 's/^depth=//' | sort -r -n > $VOMSHOST.$$.DNs.txt + VOMSCERT=`tail -n 1 $VOMSHOST.$$.DNs.txt | sed -r 's/^[0-9]+\s+//'` + VOMSCA=`head -n 1 $VOMSHOST.$$.DNs.txt | sed -r 's/^[0-9]+\s+//'` + + mkdir -p /etc/grid-security/vomsdir/$VONAME + printf "$VOMSCERT\n$VOMSCA\n" > /etc/grid-security/vomsdir/$VONAME/$VOMSHOSTONLY.lsc + echo Generated /etc/grid-security/vomsdir/$VONAME/$VOMSHOSTONLY.lsc + done GRST_CRED_2=`curl --cert /tmp/x509up_u0 --key /tmp/x509up_u0 --capath /etc/grid-security/certificates --silent https://$(hostname -f)/test.cgi|grep GRST_CRED_2`