Commit 8fbfde70 authored by Leo Pound Singer's avatar Leo Pound Singer
Browse files

Work around change in ligo-gracedb env variable precedence

parent 8e226427
......@@ -30,6 +30,7 @@ module load mpi/mpich-3.0-x86_64
# is `no`. That's obviously incorrect!
export X509_USER_CERT="$HOME/.globus/usercert.pem"
export X509_USER_KEY="$HOME/.globus/userkey.pem"
export X509_USER_PROXY="$HOME/.globus/userproxy.pem"
# Configuration for GWCelery web applications.
export FLASK_PORT=5556
......
......@@ -22,6 +22,12 @@ Changelog
- Adapt to a change in the GraceDB server's API response for a request to
create a label that already exists.
- Update the bash profile script to set the ``X509_USER_PROXY`` variable in
order to work around upstream changes in the order of precedence with which
ligo-gracedb treats environment variables. ``X509_USER_PROXY`` used to be
checked after ``X509_USER_CERT``/``X509_USER_KEY``, but is now checked
before.
0.13.0 (2020-06-03)
-------------------
......
......@@ -3,6 +3,7 @@
set -e
X509_USER_CERT="$HOME/.globus/usercert.pem"
X509_USER_KEY="$HOME/.globus/userkey.pem"
X509_USER_PROXY="$HOME/.globus/userproxy.pem"
KERBEROS_KEYTAB="${HOME}/.globus/krb5.keytab"
KERBEROS_PRINCIPAL="$(klist -k "${KERBEROS_KEYTAB}" | tail -n 1 | sed 's/.*\s//')"
kinit "${KERBEROS_PRINCIPAL}" -k -t "${KERBEROS_KEYTAB}"
......@@ -10,3 +11,4 @@ ligo-proxy-init -k > /dev/null
GRID_PROXY_PATH="$(grid-proxy-info -path)"
cp "${GRID_PROXY_PATH}" "${X509_USER_CERT}"
cp "${GRID_PROXY_PATH}" "${X509_USER_KEY}"
cp "${GRID_PROXY_PATH}" "${X509_USER_PROXY}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment