This commit is contained in:
2023-10-18 12:54:28 +02:00
parent 301e136271
commit cc4977706c
2 changed files with 50 additions and 47 deletions

View File

@@ -62,7 +62,10 @@ resource "kubectl_manifest" "dbgate-init" {
labels: ${jsonencode(local.common-labels)}
data:
start.sh: |-
[ -e /etc/local-ca/ca.crt ] && cat /etc/local-ca/ca.crt >> /etc/ssl/certs/ca-certificates.crt
if [ -e /etc/local-ca/ca.crt ];then
cp /etc/local-ca/ca.crt /usr/local/share/ca-certificates/
update-ca-certificates
fi
exec /bin/su node -c /home/dbgate-docker/entrypoint.sh "$@"
EOF
}