1
0
Fork 0
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:
Janne Heß 2022-09-05 17:08:10 +02:00 committed by GitHub
commit 044ccfe24b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {