forked from CMSCompOps/WmAgentScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcredentials.sh
More file actions
executable file
·27 lines (23 loc) · 849 Bytes
/
Copy pathcredentials.sh
File metadata and controls
executable file
·27 lines (23 loc) · 849 Bytes
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
#talk to mcm
export JIRA_SSO_COOKIE=/tmp/$USER-$HOSTNAME-vsdf43vfs
if [ "$1" == "create" ] ; then
echo "creating jira cookie" $JIRA_SSO_COOKIE
cern-get-sso-cookie -u https://its.cern.ch/jira/loginCern.jsp -o $JIRA_SSO_COOKIE --krb
else
echo "using jira cookie" $JIRA_SSO_COOKIE
fi
export MCM_SSO_COOKIE=/tmp/$USER-$HOSTNAME-vfsvdka573t
if [ "$1" == "create" ] ; then
echo "creating mcm cookie" $MCM_SSO_COOKIE
cern-get-sso-cookie -u https://cms-pdmv.cern.ch/mcm/ -o $MCM_SSO_COOKIE --krb
else
echo "using mcm cookie" $MCM_SSO_COOKIE
fi
#talk to cmsweb
export X509_USER_PROXY=/tmp/$USER-4hty64k793hj
if [ "$1" == "create" ] ; then
echo "creating grid proxy" $X509_USER_PROXY
cat $HOME/private/$USER.txt | voms-proxy-init -voms cms --valid 140:00 --rfc -pwstdin
else
echo "using grid proxy" $X509_USER_PROXY
fi