Skip to content

Commit

Permalink
use enabled value for custom secret
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikBadenhop committed Dec 10, 2024
1 parent 1e2d875 commit eb82447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/dbp-moodle/scripts/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ health_file="/tmp/healthy"
# Create liveness probe file
touch "${health_file}"

{{ if and .Values.dbpMoodle.backup.s3_certificate_secret.mountpath .Values.dbpMoodle.backup.s3_certificate_secret.key }}
{{ if and .Values.dbpMoodle.backup.s3_certificate_secret.enabled }}
printf "Appendending custom certificate (%s/%s) to /etc/ssl/certs/ca-certificates.crt\n" "{{ .Values.dbpMoodle.backup.s3_certificate_secret.mountpath }}" "{{ .Values.dbpMoodle.backup.s3_certificate_secret.key }}"
cat "{{ .Values.dbpMoodle.backup.s3_certificate_secret.mountpath }}/{{ .Values.dbpMoodle.backup.s3_certificate_secret.key }}" >> /etc/ssl/certs/ca-certificates.crt
{{ end }}
Expand Down

0 comments on commit eb82447

Please sign in to comment.