fixes install of certs

This commit is contained in:
Evan Cordell 2017-05-25 17:50:25 -04:00
parent a51afaaecf
commit 653cd997a1

View file

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