[Rt-commit] rt branch 5.0/gnupg-command-docs created. rt-5.0.2-35-g42db816cae

BPS Git Server git at git.bestpractical.com
Wed Nov 17 14:35:24 UTC 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/gnupg-command-docs has been created
        at  42db816cae0f2eabc3b094582742514a98c4d718 (commit)

- Log -----------------------------------------------------------------
commit 42db816cae0f2eabc3b094582742514a98c4d718
Author: Brett Smith <brett at bestpractical.com>
Date:   Wed Nov 17 09:33:20 2021 -0500

    Document the GnuPG option in RT::Crypt::GnuPG
    
    I just spent half an hour digging through the source to figure this out
    for a customer, so I'm writing down what I learned to make it easier for
    the next person.

diff --git a/lib/RT/Crypt/GnuPG.pm b/lib/RT/Crypt/GnuPG.pm
index 8dea73b563..6ffba16f71 100644
--- a/lib/RT/Crypt/GnuPG.pm
+++ b/lib/RT/Crypt/GnuPG.pm
@@ -94,6 +94,18 @@ Set to true value to enable this subsystem:
         ... other options ...
     );
 
+=head3 Setting the path of the GPG command
+
+By default, RT looks for a command named C<gpg> in your C<$PATH> to run GnuPG.
+If the command has a different name or is outside the C<$PATH> on your system,
+you can specify the full path of the GnuPG command using the C<GnuPG> option:
+
+    Set( %GnuPG,
+        Enable => 1,
+        GnuPG  => '/usr/local/bin/gpg2',
+        ... other options ...
+    );
+
 =head3 Format of outgoing messages
 
 The format of outgoing messages can be controlled using the

-----------------------------------------------------------------------


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list