Merge "Change DIB_IPA_CERT resulting file name"

This commit is contained in:
Jenkins 2016-08-18 13:35:12 +00:00 committed by Gerrit Code Review
commit c20a42051a
2 changed files with 3 additions and 3 deletions

View file

@ -8,5 +8,5 @@ set -eu
set -o pipefail
if [ -n "${DIB_IPA_CERT:=}" ]; then
cp $DIB_IPA_CERT $TMP_HOOKS_PATH/server.pem
cp $DIB_IPA_CERT $TMP_HOOKS_PATH/ipa-trusted-cert.pem
fi

View file

@ -38,6 +38,6 @@ case "$DIB_INIT_SYSTEM" in
esac
# Copying the self signed certificate for request library
if [ -f /tmp/in_target.d/server.pem ]; then
cat /tmp/in_target.d/server.pem >> $($IPADIR/venv/bin/python -c "import requests; print requests.certs.where()")
if [ -f /tmp/in_target.d/ipa-trusted-cert.pem ]; then
cat /tmp/in_target.d/ipa-trusted-cert.pem >> $($IPADIR/venv/bin/python -c "import requests; print requests.certs.where()")
fi