Make the chart work with a sqlite3 database All checks were successful continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
@@ -60,7 +60,7 @@ app.kubernetes.io/instance: {{ .Release.Name }} | ||||
{{- printf "%s-mysql" .Release.Name -}} | ||||
{{- else if .Values.gitea.database.builtIn.mariadb.enabled -}} | ||||
{{- printf "%s-mariadb" .Release.Name -}} | ||||
{{- else -}} | ||||
{{- else if ne .Values.gitea.config.database.DB_TYPE "sqlite3" -}} | ||||
{{- $parts := split ":" .Values.gitea.config.database.HOST -}} | ||||
{{- printf "%s %s" $parts._0 $parts._1 -}} | ||||
{{- end -}} | ||||
| ||||
@@ -21,7 +21,9 @@ stringData: | ||||
mkdir -p /data/gitea/conf | ||||
cp /etc/gitea/conf/app.ini /data/gitea/conf/app.ini | ||||
chmod a+rwx /data/gitea/conf/app.ini | ||||
{{- if include "db.servicename" . }} | ||||
nc -v -w2 -z {{ include "db.servicename" . }} {{ include "db.port" . }} && \ | ||||
{{- end }} | ||||
su git -c ' \ | ||||
set -x; \ | ||||
gitea migrate; \ | ||||
| ||||
Reference in New Issue
Block a user