@@ -299,8 +299,7 @@ submitJob() {
299
299
set -e
300
300
fi
301
301
302
- cp " ${TESTCODE} /DIRAC/tests/Jenkins/dirac-proxy-download.py" " ."
303
- python dirac-proxy-download.py " ${DIRACUSERDN} " -R " ${DIRACUSERROLE} " -o /DIRAC/Security/UseServerCertificate=True -o /DIRAC/Security/CertFile=/home/dirac/certs/hostcert.pem -o /DIRAC/Security/KeyFile=/home/dirac/certs/hostkey.pem -o /DIRAC/Setup=" ${DIRACSETUP} " -ddd
302
+ dirac-admin-get-proxy " ${DIRACUSERDN} " " ${DIRACUSERROLE} " -o /DIRAC/Security/UseServerCertificate=True -o /DIRAC/Security/CertFile=/home/dirac/certs/hostcert.pem -o /DIRAC/Security/KeyFile=/home/dirac/certs/hostkey.pem -o /DIRAC/Setup=" ${DIRACSETUP} " --out=" /tmp/x509up_u${UID} " -ddd
304
303
if [[ -f " ${TESTCODE} /${VO} DIRAC/tests/Jenkins/dirac-test-job.py" ]]; then
305
304
cp " ${TESTCODE} /${VO} DIRAC/tests/Jenkins/dirac-test-job.py" " ."
306
305
else
@@ -959,19 +958,17 @@ startRunsv(){
959
958
downloadProxy () {
960
959
echo ' ==> [downloadProxy]'
961
960
962
- cp " ${TESTCODE} /DIRAC/tests/Jenkins/dirac-proxy-download.py" .
963
-
964
961
if [[ " ${PILOTCFG} " ]]; then
965
962
if [[ -e " ${CLIENTINSTALLDIR} /diracos/etc/dirac.cfg" ]]; then # called from the py3 client directory
966
- python dirac-proxy-download.py " ${DIRACUSERDN} " -R " ${DIRACUSERROLE} " -o /DIRAC/Security/UseServerCertificate=True --cfg " ${CLIENTINSTALLDIR} /diracos/etc/dirac.cfg" " ${PILOTINSTALLDIR} /$PILOTCFG " " ${DEBUG} "
963
+ dirac-admin-get-proxy " ${DIRACUSERDN} " " ${DIRACUSERROLE} " -o /DIRAC/Security/UseServerCertificate=True --cfg " ${CLIENTINSTALLDIR} /diracos/etc/dirac.cfg" " ${PILOTINSTALLDIR} /$PILOTCFG " --out= " /tmp/x509up_u ${UID} " " ${DEBUG} "
967
964
else # assuming it's the pilot
968
- python dirac-proxy-download.py " ${DIRACUSERDN} " -R " ${DIRACUSERROLE} " -o /DIRAC/Security/UseServerCertificate=True --cfg " ${PILOTINSTALLDIR} /$PILOTCFG " " ${DEBUG} "
965
+ dirac-admin-get-proxy " ${DIRACUSERDN} " " ${DIRACUSERROLE} " -o /DIRAC/Security/UseServerCertificate=True --cfg " ${PILOTINSTALLDIR} /$PILOTCFG " --out= " /tmp/x509up_u ${UID} " " ${DEBUG} "
969
966
fi
970
967
else
971
968
if [[ -e " ${CLIENTINSTALLDIR} /diracos/etc/dirac.cfg" ]]; then # called from the py3 client directory
972
- python dirac-proxy-download.py " ${DIRACUSERDN} " -R " ${DIRACUSERROLE} " -o /DIRAC/Security/UseServerCertificate=True --cfg " ${CLIENTINSTALLDIR} /diracos/etc/dirac.cfg" " ${PILOTINSTALLDIR} /$PILOTCFG " " ${DEBUG} "
969
+ dirac-admin-get-proxy " ${DIRACUSERDN} " " ${DIRACUSERROLE} " -o /DIRAC/Security/UseServerCertificate=True --cfg " ${CLIENTINSTALLDIR} /diracos/etc/dirac.cfg" " ${PILOTINSTALLDIR} /etc/dirac.cfg " --out= " /tmp/x509up_u ${UID} " " ${DEBUG} "
973
970
else # assuming it's the pilot
974
- python dirac-proxy-download.py " ${DIRACUSERDN} " -R " ${DIRACUSERROLE} " -o /DIRAC/Security/UseServerCertificate=True --cfg " ${PILOTINSTALLDIR} /etc/dirac.cfg" " ${DEBUG} "
971
+ dirac-admin-get-proxy " ${DIRACUSERDN} " " ${DIRACUSERROLE} " -o /DIRAC/Security/UseServerCertificate=True --cfg " ${PILOTINSTALLDIR} /etc/dirac.cfg" --out= " /tmp/x509up_u ${UID} " " ${DEBUG} "
975
972
fi
976
973
fi
977
974
0 commit comments