From 15008d35266cc2b7be80ac7907871874a5f3f72d Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Mon, 6 Nov 2023 16:13:47 +0200 Subject: [PATCH] only do that when its actually an upgrade --- library/common/templates/app_functions/_mariadb.tpl | 8 ++++---- library/common/templates/app_functions/_postgres.tpl | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/library/common/templates/app_functions/_mariadb.tpl b/library/common/templates/app_functions/_mariadb.tpl index 5df456d8473..ad25185c526 100644 --- a/library/common/templates/app_functions/_mariadb.tpl +++ b/library/common/templates/app_functions/_mariadb.tpl @@ -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 -}} diff --git a/library/common/templates/app_functions/_postgres.tpl b/library/common/templates/app_functions/_postgres.tpl index 04bf13dab73..8f055f94969 100644 --- a/library/common/templates/app_functions/_postgres.tpl +++ b/library/common/templates/app_functions/_postgres.tpl @@ -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 -}}