From 7ea0f460e6e3cd82e0ec3d4b1c2d6006b7c24619 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 11 Nov 2014 13:26:31 -0400 Subject: use --trust-model always to avoid prompt from gpg gpg prompts when encrypting to an untrusted key, but if propellor has been told to add a key, we implicitly trust it. --- src/Propellor/Gpg.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Propellor/Gpg.hs') diff --git a/src/Propellor/Gpg.hs b/src/Propellor/Gpg.hs index c65d06ec..e478f610 100644 --- a/src/Propellor/Gpg.hs +++ b/src/Propellor/Gpg.hs @@ -93,6 +93,7 @@ gpgEncrypt f s = do [ "--default-recipient-self" , "--armor" , "--encrypt" + , "--trust-model", "always" ] ++ concatMap (\k -> ["--recipient", k]) keyids encrypted <- writeReadProcessEnv "gpg" opts Nothing -- cgit v1.2.3