mirror of
https://github.com/truenas/charts.git
synced 2026-11-28 23:06:17 +08:00
only do that when its actually an upgrade
This commit is contained in:
committed by
Stavros Kois
parent
4214b8b824
commit
15008d3526
@@ -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 -}}
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user