#!/bin/sh

set -e

if [ "$CERTS_Files" != "default" ]; then
echo Start to install SSL Cert

wget $CERTS_Files --quiet -O /tmp/certs.tgz
mkdir /usr/share/ca-certificates/docker
tar -xf /tmp/certs.tgz -C /usr/share/ca-certificates/docker
cd /usr/share/ca-certificates && find ./docker/ -type f | sed 's/.\///' >> /etc/ca-certificates.conf
fi
#!/bin/sh

set -e

if [ "$CERTS_Files" != "default" ]; then
echo Start to install SSL Cert

wget $CERTS_Files --quiet -O /tmp/certs.tgz
mkdir /usr/share/ca-certificates/docker
tar -xf /tmp/certs.tgz -C /usr/share/ca-certificates/docker
cd /usr/share/ca-certificates && find ./docker/ -type f | sed 's/.\///' >> /etc/ca-certificates.conf
update-ca-certificates
fi
Fix the bug, the ca not update after adding new crt.
Fix the bug, the ca not update after adding new crt.

Signed-off-by: LaynePeng <b42b02109bc745c62919567dc0f7be6c65db2f90@hotmail.com>
