浏览代码

nextcloud: fix db user encoding issue (#2466)

Stavros Kois 1 年之前
父节点
当前提交
293d986306

+ 1 - 1
library/ix-dev/charts/nextcloud/Chart.yaml

@@ -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'

+ 3 - 0
library/ix-dev/charts/nextcloud/templates/_configuration.tpl

@@ -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 -}}