summaryrefslogtreecommitdiff
path: root/src/Propellor
diff options
context:
space:
mode:
authorJoey Hess2014-11-11 13:26:31 -0400
committerJoey Hess2014-11-11 13:26:31 -0400
commit7ea0f460e6e3cd82e0ec3d4b1c2d6006b7c24619 (patch)
tree3d4e600280d19d807d531e42c4b176b086a1d16a /src/Propellor
parentbe27ae1503f55a18b3b5813186248e4b182a60d9 (diff)
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.
Diffstat (limited to 'src/Propellor')
-rw-r--r--src/Propellor/Gpg.hs1
1 files changed, 1 insertions, 0 deletions
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