Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
3be18b82
Commit
3be18b82
authored
Sep 10, 2012
by
Brian Paul Bockelman
Browse files
Fix CMSSW area initialization code.
parent
960e1ee5
Changes
1
Hide whitespace changes
Inline
Side-by-side
nagios/org.cms.glexec/probes/org.cms.glexec/testjob/tests/glprobe.sh
View file @
3be18b82
...
...
@@ -52,21 +52,31 @@ fi
# workaround to suppress voms errors on OSG
export
VOMS_PROXY_INFO_DONT_VERIFY_AC
=
"1"
# Setup the grid environment:
if
[
-n
"
$OSG_GRID
"
]
;
then
[
-f
$OSG_GRID
/setup.sh
]
&&
source
$OSG_GRID
/setup.sh
fi
dn
=
`
voms-proxy-info
--identity
`
fqan
=
`
voms-proxy-info
--fqan
|
head
-1
`
add2buffer
"DN:
$dn
"
add2buffer
"Primary FQAN:
$fqan
"
# Set the CMS environment
if
[
-n
"
$OSG_APP
"
]
;
then
SW_DIR
=
$OSG_APP
/cmssoft/cms
[
-f
$OSG_GRID
/setup.sh
]
&&
source
$OSG_GRID
/setup.sh
add2buffer
"OSG_APP/cmssoft/cms=
$OSG_APP
/cmssoft/cms"
elif
[
-n
"
$VO_CMS_SW_DIR
"
]
;
then
if
[
-n
"
$VO_CMS_SW_DIR
"
]
;
then
SW_DIR
=
$VO_CMS_SW_DIR
add2buffer
"VO_CMS_SW_DIR=
$VO_CMS_SW_DIR
"
elif
[
-n
"
$OSG_APP
"
]
;
then
SW_DIR
=
$OSG_APP
/cmssoft/cms
add2buffer
"OSG_APP/cmssoft/cms=
$OSG_APP
/cmssoft/cms"
elif
[
-n
"
$CVMFS
"
]
;
then
SW_DIR
=
$CVMFS
/cms.cern.ch
add2buffer
"CVMFS (via env)=
$CVMFS
/cms.cern.ch"
elif
[
-e
"/cvmfs/cms.cern.ch"
]
;
then
SW_DIR
=
/cvmfs/cms.cern.ch
add2buffer
"CVMFS=/cvmfs/cms.cern.ch"
else
do_print
"Error: N
either
VO_CMS_SW_DIR
n
or
OSG_APP defined
"
do_print
"Error: N
one of OSG_APP,
VO_CMS_SW_DIR
,
or
CVMFS are present.
"
exit
$NAG_CRITICAL
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment