Skip to content
Snippets Groups Projects
Commit bc9ca6f0 authored by Maarten de Waard's avatar Maarten de Waard :angel: Committed by Arie Peterson
Browse files

Use database parameters in init script

parent 9e63f505
No related branches found
No related tags found
1 merge request!125Resolve "Switch from postgres to mariadb"
Pipeline #11984 passed with stages
in 43 seconds
......@@ -4,6 +4,6 @@ metadata:
name: "nextcloud-mariadb-initdbscripts"
data:
setup.sql: |
CREATE USER onlyoffice IDENTIFIED BY '{{ .Values.onlyoffice.database.password }}';
CREATE DATABASE onlyoffice;
GRANT ALL PRIVILEGES ON onlyoffice.* TO onlyoffice;
CREATE USER {{ .Values.onlyoffice.database.user }} IDENTIFIED BY '{{ .Values.onlyoffice.database.password }}';
CREATE DATABASE {{ .Values.onlyoffice.database.name }};
GRANT ALL PRIVILEGES ON {{ .Values.onlyoffice.database.name }}.* TO '{{ .Values.onlyoffice.database.user }}'.'%';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment