From 9f236b6fa57fabd91925556609727219a7817f43 Mon Sep 17 00:00:00 2001 From: il Date: Tue, 14 Apr 2026 07:44:39 +0900 Subject: [PATCH] refactor(kopia): fix the homepath from hardcoded path to %h the systemd specifier --- config/services/systemd/common/kopia/kopia-backup.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/services/systemd/common/kopia/kopia-backup.service.j2 b/config/services/systemd/common/kopia/kopia-backup.service.j2 index 19abeac..1f3e18f 100644 --- a/config/services/systemd/common/kopia/kopia-backup.service.j2 +++ b/config/services/systemd/common/kopia/kopia-backup.service.j2 @@ -21,9 +21,9 @@ ProtectHome=tmpfs InaccessiblePaths=/boot /root {% if node['name'] == 'infra' %} -BindReadOnlyPaths=/home/infra/containers/postgresql/backups +BindReadOnlyPaths=%h/containers/postgresql/backups {% elif node['name'] == 'app' %} -BindReadOnlyPaths=/home/app/data +BindReadOnlyPaths=%h/data {% endif %} # In root namescope, %u always bring 0 BindPaths=/etc/kopia