152 |
|
txt += ' echo "middleware =$middleware" \n' |
153 |
|
txt += 'elif [ $GRID3_APP_DIR ]; then\n' |
154 |
|
txt += ' middleware=OSG \n' |
155 |
< |
txt += ' echo "SyncCE=`echo $GLITE_WL_LOG_DESTINATION`" | tee -a $RUNTIME_AREA/$repo \n' |
155 |
> |
txt += ' if [ $GLOBUS_GRAM_JOB_CONTACT ]; then \n' |
156 |
> |
txt += ' SyncCE=`echo "https://cmsgrid02.hep.wisc.edu:59387/11075/1191845762/" | cut -d: -f2 | sed \'s/\/\///\'`;\n' |
157 |
> |
txt += ' echo "SyncCE=$SyncCE" | tee -a $RUNTIME_AREA/$repo ;\n' |
158 |
> |
txt += ' else\n' |
159 |
> |
txt += ' echo "not reporting SyncCE";\n' |
160 |
> |
txt += ' fi\n'; |
161 |
|
txt += ' echo "GridFlavour=`echo $middleware`" | tee -a $RUNTIME_AREA/$repo \n' |
162 |
|
txt += ' echo "middleware =$middleware" \n' |
163 |
|
txt += 'elif [ $OSG_APP ]; then \n' |
164 |
|
txt += ' middleware=OSG \n' |
165 |
< |
txt += ' echo "SyncCE=`echo $GLITE_WL_LOG_DESTINATION`" | tee -a $RUNTIME_AREA/$repo \n' |
165 |
> |
txt += ' if [ $GLOBUS_GRAM_JOB_CONTACT ]; then \n' |
166 |
> |
txt += ' SyncCE=`echo "https://cmsgrid02.hep.wisc.edu:59387/11075/1191845762/" | cut -d: -f2 | sed \'s/\/\///\'`;\n' |
167 |
> |
txt += ' echo "SyncCE=$SyncCE" | tee -a $RUNTIME_AREA/$repo ;\n' |
168 |
> |
txt += ' else\n' |
169 |
> |
txt += ' echo "not reporting SyncCE";\n' |
170 |
> |
txt += ' fi\n'; |
171 |
|
txt += ' echo "GridFlavour=`echo $middleware`" | tee -a $RUNTIME_AREA/$repo \n' |
172 |
|
txt += ' echo "middleware =$middleware" \n' |
173 |
|
txt += 'else \n' |