From aa1735f9970ed86eb011cc5c356cc4a1e3037dc0 Mon Sep 17 00:00:00 2001 From: "Dominik Schneider (schnedo)" Date: Mon, 28 Jul 2025 14:50:22 +0200 Subject: [PATCH] also replace runtimedir for template paths in user mode --- pkgs/sops-install-secrets/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/sops-install-secrets/main.go b/pkgs/sops-install-secrets/main.go index 444e246..cd2757e 100644 --- a/pkgs/sops-install-secrets/main.go +++ b/pkgs/sops-install-secrets/main.go @@ -1286,6 +1286,12 @@ func installSecrets(args []string) error { newSecrets = append(newSecrets, secret) } manifest.Secrets = newSecrets + var newTemplates []template + for _, template := range manifest.Templates { + template.Path = replaceRuntimeDir(template.Path, rundir) + newTemplates = append(newTemplates, template) + } + manifest.Templates = newTemplates } app := appContext{