mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-01-13 18:17:54 +08:00
Merge pull request #882 from nazarewk/push-qqvmsowmnqtx
sops-install-secrets: create /run/secrets link before chowning it
This commit is contained in:
commit
57e2d9ef84
1 changed files with 3 additions and 3 deletions
|
|
@ -1410,12 +1410,12 @@ func installSecrets(args []string) error {
|
|||
if isDry {
|
||||
return nil
|
||||
}
|
||||
if err := symlinkSecretsAndTemplates(manifest.SymlinkPath, manifest.Secrets, manifest.Templates, manifest.UserMode); err != nil {
|
||||
return fmt.Errorf("failed to prepare symlinks to secret store: %w", err)
|
||||
}
|
||||
if err := atomicSymlink(*secretDir, manifest.SymlinkPath); err != nil {
|
||||
return fmt.Errorf("cannot update secrets symlink: %w", err)
|
||||
}
|
||||
if err := symlinkSecretsAndTemplates(manifest.SymlinkPath, manifest.Secrets, manifest.Templates, manifest.UserMode); err != nil {
|
||||
return fmt.Errorf("failed to prepare symlinks to secret store: %w", err)
|
||||
}
|
||||
if err := pruneGenerations(manifest.SecretsMountPoint, *secretDir, manifest.KeepGenerations); err != nil {
|
||||
return fmt.Errorf("cannot prune old secrets generations: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue