mirror of
https://github.com/truenas/charts.git
synced 2026-10-19 16:16:04 +00:00
nextcloud: fix db user encoding issue (#2466)
This commit is contained in:
@@ -4,7 +4,7 @@ description: A file sharing server that puts the control and security of your ow
|
||||
annotations:
|
||||
title: Nextcloud
|
||||
type: application
|
||||
version: 2.0.5
|
||||
version: 2.0.6
|
||||
apiVersion: v2
|
||||
appVersion: 29.0.0
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
{{/* Fetch secrets from pre-migration secret */}}
|
||||
{{- with (lookup "v1" "Secret" .Release.Namespace "db-details") -}}
|
||||
{{- $dbUser = ((index .data "db-user") | b64dec) -}}
|
||||
{{- if contains "\\x" (printf "%q" $dbUser) -}}
|
||||
{{- $dbUser = (index .data "db-user") -}}
|
||||
{{- end -}}
|
||||
{{- $dbPass = ((index .data "db-password") | b64dec) -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user