Merge pull request #3220 from quay/certs-fix
Fix certs install script (again)
This commit is contained in:
commit
0681784012
1 changed files with 3 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
set -e
|
set -e
|
||||||
QUAYPATH=${QUAYPATH:-"."}
|
QUAYPATH=${QUAYPATH:-"."}
|
||||||
QUAYCONF=${QUAYCONF:-"$QUAYPATH/conf/stack"}
|
QUAYCONF=${QUAYCONF:-"$QUAYPATH/conf"}
|
||||||
QUAYCONFIG=${QUAYCONFIG:-"$QUAYCONF/stack"}
|
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 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
|
if [[ "$KUBERNETES_SERVICE_HOST" != "" ]];then
|
||||||
|
@ -37,7 +37,7 @@ if [ -f $CERTDIR ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add extra trusted certificates (prefixed)
|
# 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
|
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/
|
||||||
|
|
Reference in a new issue