Merge pull request #2670 from ecordell/fix-cert-install

fixes install of certs
This commit is contained in:
Evan Cordell 2017-05-25 18:10:42 -04:00 committed by GitHub
commit 4750d1c5ef

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
fi
## Add extra trusted certificates (prefixed)
for f in $(ls -p /conf/stack/extra_ca* | grep -v ':$' | grep -v '/$')
# Add extra trusted certificates (prefixed)
for f in $(find /conf/stack/ -maxdepth 1 -type f -name "extra_ca*")
do
echo "Installing extra cert $f"
cp "$f" /usr/local/share/ca-certificates/