Update cert install scripts to read prefixed names

This commit is contained in:
Evan Cordell 2017-05-23 13:59:09 -04:00
parent 01b59e8d66
commit 0c05958739

View file

@ -23,5 +23,13 @@ if [ -f /conf/stack/extra_ca_certs ]; then
cat /conf/stack/extra_ca_certs >> /venv/lib/python2.7/site-packages/requests/cacert.pem
fi
## Add extra trusted certificates (prefixed)
for f in $(ls /conf/stack/extra_ca* | grep -v ':$')
do
echo "Installing extra cert $f"
cp "/conf/stack/$f" /usr/local/share/ca-certificates/
cat "/conf/stack/$f" >> /venv/lib/python2.7/site-packages/requests/cacert.pem
done
# Update all CA certificates.
update-ca-certificates