mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-01-27 01:27:13 +08: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)
|
secret.mode = os.FileMode(mode)
|
||||||
|
|
||||||
if app.ignorePasswd {
|
if app.ignorePasswd || os.Getenv("NIXOS_ACTION") == "dry-activate" {
|
||||||
secret.owner = 0
|
secret.owner = 0
|
||||||
secret.group = 0
|
secret.group = 0
|
||||||
} else if app.checkMode == Off {
|
} else if app.checkMode == Off {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue