Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LHCb Core Software
LbEnvBootstrap
Commits
6f2dd09f
Commit
6f2dd09f
authored
Mar 07, 2019
by
Marco Clemencic
Browse files
Merge branch 'csh_fixes' into 'master'
csh fixes See merge request
!4
parents
a078ad64
e9aec342
Pipeline
#741843
passed with stages
in 1 minute and 32 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
data/etc/cern_profile.csh
View file @
6f2dd09f
...
...
@@ -21,10 +21,11 @@ else
endif
if ( -e "${_home_dir}" && ! -e "${_home_dir}/.nogrouplogin" ) then
# customization enabled
foreach _f ( %target_dir%/etc/cern_profile.d/*.csh )
source ${_f}
endforeach
if ( -d %target_dir%/etc/cern_profile.d ) then
foreach _f ( `ls %target_dir%/etc/cern_profile.d/ | grep '\.csh$'` )
source %target_dir%/etc/cern_profile.d/${_f}
end
endif
if ( ! -e "${_home_dir}/.nolbenv" ) then
# LbEnv enabled
# - check the requested flavour
...
...
data/etc/cern_profile.d/cern_env.csh
View file @
6f2dd09f
...
...
@@ -18,18 +18,18 @@ setenv LHCBNIGHTLIES /cvmfs/lhcbdev.cern.ch/nightlies
if ( ! $?X509_CERT_DIR ) then
if ( -d /etc/grid-security/certificates ) then
setenv X509_CERT_DIR /etc/grid-security/certificates
elif ( -d /cvmfs/lhcb.cern.ch/etc/grid-security/certificates ) then
el
se
if ( -d /cvmfs/lhcb.cern.ch/etc/grid-security/certificates ) then
setenv X509_CERT_DIR /cvmfs/lhcb.cern.ch/etc/grid-security/certificates
f
i
f
i
endi
f
endi
f
if ( ! $?X509_VOMS_DIR ) then
if ( -d /etc/grid-security/vomsdir ) then
setenv X509_VOMS_DIR /etc/grid-security/vomsdir
elif ( -d /cvmfs/lhcb.cern.ch/etc/grid-security/vomsdir ) then
el
se
if ( -d /cvmfs/lhcb.cern.ch/etc/grid-security/vomsdir ) then
setenv X509_VOMS_DIR /cvmfs/lhcb.cern.ch/etc/grid-security/vomsdir
f
i
f
i
endi
f
endi
f
# Variable to access the LHCb CASTOR instance
setenv STAGE_HOST castorlhcb.cern.ch
...
...
data/etc/cern_profile.sh
View file @
6f2dd09f
...
...
@@ -32,9 +32,11 @@
_home_dir
=
"
${
TEST_HOME
:-${
HOME
}}
"
if
[
-e
"
${
_home_dir
}
"
-a
!
\(
-e
"
${
_home_dir
}
/.nogrouplogin"
\)
]
;
then
# customization enabled
for
_f
in
%target_dir%/etc/cern_profile.d/
*
.sh
;
do
source
${
_f
}
done
if
[
-d
%target_dir%/etc/cern_profile.d
]
;
then
for
_f
in
$(
ls
%target_dir%/etc/cern_profile.d/ |
grep
'\.sh$'
)
;
do
source
%target_dir%/etc/cern_profile.d/
${
_f
}
done
fi
if
[
!
-e
"
${
_home_dir
}
/.nolbenv"
]
;
then
# LbEnv enabled
...
...
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