Skip to content

Commit

Permalink
only do that when its actually an upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Nov 8, 2023
1 parent 4214b8b commit 15008d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions library/common/templates/app_functions/_mariadb.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down
8 changes: 4 additions & 4 deletions library/common/templates/app_functions/_postgres.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down

0 comments on commit 15008d3

Please sign in to comment.