[bitnami/*] Adapt certificates initContainer to the new image (#5684)

* [bitnami/*] Adapt certificates initContainer to the new image

* Bump drupal version
This commit is contained in:
Carlos Rodríguez Hernández
2021-03-05 16:27:11 +01:00
committed by GitHub
parent 3b855cfd6c
commit 5d59d2f21e
23 changed files with 34 additions and 56 deletions

View File

@@ -25,4 +25,4 @@ name: moodle
sources:
- https://github.com/bitnami/bitnami-docker-moodle
- http://www.moodle.org/
version: 11.0.4
version: 11.0.5

View File

@@ -93,13 +93,11 @@ spec:
{{- else if .Values.certificates.customCertificate.certificateSecret }}
- sh
- -c
- if command -v apk >/dev/null; then apk add --no-cache ca-certificates openssl && update-ca-certificates;
else apt-get update && apt-get install -y ca-certificates openssl; fi
- install_packages ca-certificates openssl
{{- else }}
- sh
- -c
- if command -v apk >/dev/null; then apk add --no-cache ca-certificates openssl && update-ca-certificates;
else apt-get update && apt-get install -y ca-certificates openssl; fi
- install_packages ca-certificates openssl
&& openssl req -new -x509 -days 3650 -nodes -sha256
-subj "/CN=$(hostname)" -addext "subjectAltName = DNS:$(hostname)"
-out /etc/ssl/certs/ssl-cert-snakeoil.pem