chart-unifi_network_application: attempt to fix init script

This commit is contained in:
2024-08-25 22:51:54 +02:00
parent 73aa6d1eef
commit bf87280703
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,8 @@ metadata:
name: {{ include "template.fullname" . }}-mongodb-init-sh
data:
init-mongo.sh: |
#!/bin/bash
if which mongosh > /dev/null 2>&1; then
mongo_init_bin='mongosh'
else

View File

@ -22,6 +22,7 @@ spec:
- name: {{ include "template.fullname" . }}-mongodb-init-volume
configMap:
name: {{ include "template.fullname" . }}-mongodb-init-sh
defaultMode: 770
- name: {{ include "template.fullname" . }}-mongodb-data-volume
persistentVolumeClaim:
claimName: {{ include "template.fullname" . }}-{{ default "db-claim" .Values.mongodb.persistence.claimSuffix }}