Fix SSL custom certs installation file for bash shell scripting bug

The missing quotes caused the script to fail with a bash error
This commit is contained in:
Joseph Schorr 2017-03-24 16:39:28 -04:00
parent 90b130fe16
commit da8032fe61

View file

@ -9,7 +9,7 @@ fi
# Add extra trusted certificates (as a directory)
if [ -d /conf/stack/extra_ca_certs ]; then
if test $(ls -A "/conf/stack/extra_ca_certs"); then
if test "$(ls -A "/conf/stack/extra_ca_certs")"; then
echo "Installing extra certificates found in /conf/stack/extra_ca_certs directory"
cp /conf/stack/extra_ca_certs/* /usr/local/share/ca-certificates/
cat /conf/stack/extra_ca_certs/* >> /venv/lib/python2.7/site-packages/requests/cacert.pem