only do that when its actually an upgrade

This commit is contained in:
Stavros kois
2023-11-06 16:13:47 +02:00
committed by Stavros Kois
parent 4214b8b824
commit 15008d3526
2 changed files with 8 additions and 8 deletions

View File

@@ -69,10 +69,10 @@ backupChownMode (optional): Whether to chown the backup directory or
{{- if hasKey $ixChartContext "isUpgrade" -}}
{{- if $ixChartContext.isUpgrade -}}
{{- $enableBackupJob = true -}}
{{- end -}}
{{- if hasKey $ixChartContext "isStopped" -}}
{{- if $ixChartContext.isStopped -}}
{{- fail "Application must be running before upgrade. This is to ensure the database backup will be able to complete." -}}
{{- if hasKey $ixChartContext "isStopped" -}}
{{- if $ixChartContext.isStopped -}}
{{- fail "Application must be running before upgrade. This is to ensure the database backup will be able to complete." -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- else -}}

View File

@@ -74,10 +74,10 @@ backupChownMode (optional): Whether to chown the backup directory or
{{- if hasKey $ixChartContext "isUpgrade" -}}
{{- if $ixChartContext.isUpgrade -}}
{{- $enableBackupJob = true -}}
{{- end -}}
{{- if hasKey $ixChartContext "isStopped" -}}
{{- if $ixChartContext.isStopped -}}
{{- fail "Application must be running before upgrade. This is to ensure the database backup will be able to complete." -}}
{{- if hasKey $ixChartContext "isStopped" -}}
{{- if $ixChartContext.isStopped -}}
{{- fail "Application must be running before upgrade. This is to ensure the database backup will be able to complete." -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- else -}}