refactor(kopia): fix the homepath from hardcoded path to %h the systemd specifier

This commit is contained in:
2026-04-14 07:44:39 +09:00
parent b4a0874deb
commit 9f236b6fa5

View File

@@ -21,9 +21,9 @@ ProtectHome=tmpfs
InaccessiblePaths=/boot /root InaccessiblePaths=/boot /root
{% if node['name'] == 'infra' %} {% if node['name'] == 'infra' %}
BindReadOnlyPaths=/home/infra/containers/postgresql/backups BindReadOnlyPaths=%h/containers/postgresql/backups
{% elif node['name'] == 'app' %} {% elif node['name'] == 'app' %}
BindReadOnlyPaths=/home/app/data BindReadOnlyPaths=%h/data
{% endif %} {% endif %}
# In root namescope, %u always bring 0 # In root namescope, %u always bring 0
BindPaths=/etc/kopia BindPaths=/etc/kopia