Remove unneeded DBs

This commit is contained in:
Till Faelligen 2022-12-06 12:17:02 +01:00
parent bde72dd86f
commit ce35da5a3f
No known key found for this signature in database
GPG key ID: ACCDC9606D472758
2 changed files with 1 additions and 10 deletions

View file

@ -23,7 +23,7 @@ type: Opaque
{{- $connectionString := print "postgresql://" .Values.configuration.database.user ":" .Values.configuration.database.password "@" .Values.configuration.database.host }}
{{- if .Values.postgresql.enabled }}
{{- $connectionString = print "postgresql://" .Values.postgresql.auth.username ":" .Values.postgresql.auth.password "@" .Chart.Name -}}
{{- $connectionString = print "postgresql://" .Values.postgresql.auth.username ":" .Values.postgresql.auth.password "@" .Release.Name "-postgresql/dendrite" -}}
{{ end }}
---
apiVersion: v1

View file

@ -231,15 +231,6 @@ postgresql:
password: changeme
database: dendrite
initdbScripts:
# -- Create databases when first creating a PostgreSQL Server
# @default -- creates the required databases
create_db.sh: |
#!/bin/sh
for db in userapi_accounts userapi_devices mediaapi syncapi roomserver keyserver federationapi mscs; do
createdb -U dendrite -O dendrite dendrite_$db
done
persistence:
enabled: false