#!/bin/bash create_proxy () { INIT_PREFIX="voms" [ "x${DISABLE_VOMS_INIT}" == "x1" ] && INIT_PREFIX="grid" # voms-proxy-init authentication grid-proxy-info -e &> /dev/null if [ "x$?" != "x0" ]; then echo_r "Couldn't find a valid proxy." echo_g "Calling ${INIT_PREFIX}-proxy-init....." if [ "x${DISABLE_VOMS_INIT}" == "x" ]; then voms-proxy-init -voms ${VONAME}:all else grid-proxy-init fi if [ $? -ne 0 ]; then echo_r "${INIT_PREFIX}-proxy-init failed :-( Execution halted." exit 1 fi fi }