Update cert install scripts to read prefixed names
This commit is contained in:
parent
01b59e8d66
commit
0c05958739
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Reference in a new issue