mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-03-31 04:14:37 +00:00
Merge pull request #223 from Mic92/fix/dry-activation-lookup
Fix lookup of users/groups in dry activation
This commit is contained in:
commit
044ccfe24b
1 changed files with 1 additions and 1 deletions
|
@ -455,7 +455,7 @@ func (app *appContext) validateSecret(secret *secret) error {
|
|||
}
|
||||
secret.mode = os.FileMode(mode)
|
||||
|
||||
if app.ignorePasswd {
|
||||
if app.ignorePasswd || os.Getenv("NIXOS_ACTION") == "dry-activate" {
|
||||
secret.owner = 0
|
||||
secret.group = 0
|
||||
} else if app.checkMode == Off {
|
||||
|
|
Loading…
Add table
Reference in a new issue