浏览代码

also handle incomplete dir persistence when disabled

Stavros kois 1 年之前
父节点
当前提交
fc21e9bc75
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      library/ix-dev/community/transmission/templates/_persistence.tpl

+ 2 - 0
library/ix-dev/community/transmission/templates/_persistence.tpl

@@ -22,6 +22,7 @@ persistence:
           mountPath: /downloads/complete
         01-permissions:
           mountPath: /mnt/directories/complete
+  {{- if .Values.transmissionStorage.enableIncompleteDir }}
   download-incomplete:
     enabled: true
     type: {{ .Values.transmissionStorage.downloadsIncomplete.type }}
@@ -33,6 +34,7 @@ persistence:
           mountPath: /downloads/incomplete
         01-permissions:
           mountPath: /mnt/directories/incomplete
+  {{- end -}}
   {{- range $idx, $storage := .Values.transmissionStorage.additionalStorages }}
   {{ printf "transmission-%v" (int $idx) }}:
     {{- $size := "" -}}