From 2cdb876190ff2f4c15fd0b0c5746efedb01fb36c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kou=C5=99il?= Date: Mon, 21 Mar 2005 11:25:51 +0000 Subject: [PATCH] - Enable support for renewal of VOMS attributes - Touch default voms config file, if it doesn't exist (workaround for #7511) --- org.glite.security.proxyrenewal/config/startup | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/org.glite.security.proxyrenewal/config/startup b/org.glite.security.proxyrenewal/config/startup index 70d1c6b..5b04681 100755 --- a/org.glite.security.proxyrenewal/config/startup +++ b/org.glite.security.proxyrenewal/config/startup @@ -32,6 +32,14 @@ start() [ -z "$creds" ] && echo $0: WARNING: No credentials specified. Using default lookup which is dangerous. >&2 + # workaround for VOMS_FindByVO that seems to always require user's own VOMS config file + user_voms_config=$HOME/.glite/vomses + if [ ! -f "$user_voms_config" ]; then + rm -f /tmp/renewal_vomses + su - $GLITE_USER -c "touch /tmp/renewal_vomses" + user_voms_config=/tmp/renewal_vomses + fi + echo -n Starting ProxyRenewal Daemon: glite-proxy-renewd ... if [ ! -d "$PROXY_REPOSITORY" ]; then @@ -40,8 +48,9 @@ start() chmod 0700 $PROXY_REPOSITORY fi - su - $GLITE_USER -c "$GLITE_LOCATION/bin/glite-proxy-renewd \ - -r $PROXY_REPOSITORY $creds" && echo " done" + su - $GLITE_USER -c "VOMS_USERCONF=$user_voms_config \ + $GLITE_LOCATION/bin/glite-proxy-renewd \ + -r $PROXY_REPOSITORY $creds -A" && echo " done" } stop() -- 1.8.2.3