- Enable support for renewal of VOMS attributes
authorDaniel Kouřil <kouril@ics.muni.cz>
Mon, 21 Mar 2005 11:25:51 +0000 (11:25 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Mon, 21 Mar 2005 11:25:51 +0000 (11:25 +0000)
- Touch default voms config file, if it doesn't exist (workaround for #7511)

org.glite.security.proxyrenewal/config/startup

index 70d1c6b..5b04681 100755 (executable)
@@ -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()