mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 06:04:57 +08:00
also replace runtimedir for template paths in user mode
This commit is contained in:
parent
ad2ae68ffc
commit
932e54d6ce
1 changed files with 6 additions and 0 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue