mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-20 04:23:09 -06:00
Remove unneeded DBs
This commit is contained in:
parent
bde72dd86f
commit
ce35da5a3f
|
|
@ -23,7 +23,7 @@ type: Opaque
|
||||||
|
|
||||||
{{- $connectionString := print "postgresql://" .Values.configuration.database.user ":" .Values.configuration.database.password "@" .Values.configuration.database.host }}
|
{{- $connectionString := print "postgresql://" .Values.configuration.database.user ":" .Values.configuration.database.password "@" .Values.configuration.database.host }}
|
||||||
{{- if .Values.postgresql.enabled }}
|
{{- 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 }}
|
{{ end }}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|
|
||||||
|
|
@ -231,15 +231,6 @@ postgresql:
|
||||||
password: changeme
|
password: changeme
|
||||||
database: dendrite
|
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:
|
persistence:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue