Преглед на файлове

only do that when its actually an upgrade

Stavros kois преди 1 година
родител
ревизия
15008d3526
променени са 2 файла, в които са добавени 8 реда и са изтрити 8 реда
  1. 4 4
      library/common/templates/app_functions/_mariadb.tpl
  2. 4 4
      library/common/templates/app_functions/_postgres.tpl

+ 4 - 4
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 -}}

+ 4 - 4
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 -}}