Merge pull request #3220 from quay/certs-fix

Fix certs install script (again)
This commit is contained in:
Sam Chow 2018-08-23 14:05:21 -04:00 committed by GitHub
commit 0681784012
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,9 @@
#! /bin/bash
set -e
QUAYPATH=${QUAYPATH:-"."}
QUAYCONF=${QUAYCONF:-"$QUAYPATH/conf/stack"}
QUAYCONF=${QUAYCONF:-"$QUAYPATH/conf"}
QUAYCONFIG=${QUAYCONFIG:-"$QUAYCONF/stack"}
CERTDIR=${QUAYCONFIG/extra_ca_certs}
CERTDIR=${CERTDIR:-"$QUAYCONFIG/extra_ca_certs"}
# If we're running under kube, the previous script (02_get_kube_certs.sh) will put the certs in a different location
if [[ "$KUBERNETES_SERVICE_HOST" != "" ]];then
@ -37,7 +37,7 @@ if [ -f $CERTDIR ]; then
fi
# Add extra trusted certificates (prefixed)
for f in $(find $CERTDIR/ -maxdepth 1 -type f -name "extra_ca*")
for f in $(find $QUAYCONFIG/ -maxdepth 1 -type f -name "extra_ca*")
do
echo "Installing extra cert $f"
cp "$f" /usr/local/share/ca-certificates/