From a73ea0450f78ccca416bfb6d88030777391048b7 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 5 Aug 2023 17:19:31 +0200 Subject: [PATCH] fix newlines in containe file --- templates/etc/containers/systemd/vault.container.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/etc/containers/systemd/vault.container.j2 b/templates/etc/containers/systemd/vault.container.j2 index eceb785..917584f 100644 --- a/templates/etc/containers/systemd/vault.container.j2 +++ b/templates/etc/containers/systemd/vault.container.j2 @@ -17,6 +17,7 @@ EnvironmentFile=/etc/containers/systemd/vault.env {% for item in vault_volumes %} Volume={{ item.name }}:{{ item.dest }}{{ ":" + item.opts if item.opts is defined else "" }} {% endfor %} +{% if (redis_cap_add + redis_cap_drop) | length > 0 %} {% if vault_cap_add | length > 0 %} AddCapability={{ vault_cap_add | join(" ") }} @@ -24,6 +25,7 @@ AddCapability={{ vault_cap_add | join(" ") }} {% if vault_cap_drop | length > 0 %} DropCapability={{ vault_cap_drop | join(" ") }} {% endif %} +{% endif %} Network={{ vault_network }} {% for item in vault_exposed_ports %}