-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup-rucio
31 lines (30 loc) · 913 Bytes
/
setup-rucio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
setup-rucio-atlas() {
export X509_USER_PROXY=/tmp/x509up_u$(id -u)_ATLAS
export RUCIO_HOME=~/rucio_homes/atlas
voms-proxy-info -exists > /dev/null 2>&1
DOES_EXIST=$?
voms-proxy-info -acexists atlas > /dev/null 2>&1
HAS_VO=$?
if [ $DOES_EXIST -eq 1 -o $HAS_VO -eq 1 ]; then
#if [ -z "$X509_USER_PROXY" ]; then
# unset X509_USER_PROXY
#fi
voms-proxy-init -voms atlas:/atlas/de -bits 2048 -rfc
fi
export X509_USER_PROXY=$(voms-proxy-info -path)
}
setup-rucio-belle() {
export X509_USER_PROXY=/tmp/x509up_u$(id -u)_BELLE
export RUCIO_HOME=~/rucio_homes/belle
voms-proxy-info -exists > /dev/null 2>&1
DOES_EXIST=$?
voms-proxy-info -acexists belle > /dev/null 2>&1
HAS_VO=$?
if [ $DOES_EXIST -eq 1 -o $HAS_VO -eq 1 ]; then
#if [ -z "$X509_USER_PROXY" ]; then
# unset X509_USER_PROXY
#fi
voms-proxy-init -voms belle -bits 2048 -rfc
fi
export X509_USER_PROXY=$(voms-proxy-info -path)
}