From 215bfe1dafeb467d5e88f7d1cdff37e6f8d454e1 Mon Sep 17 00:00:00 2001 From: Josh Wenke <1607041+joshwenke@users.noreply.github.com> Date: Mon, 3 Apr 2023 13:39:11 -0400 Subject: [PATCH] Change GNUPG home directory variable In newer versions of gnupg, it uses `homedir` instead of `gnupghome` When using gnupghome in the simplelogin.env I get this error when running the docker command to prepare the database by running the migration: ...... other errors above File "/code/app/dashboard/views/mailbox_detail.py", line 20, in from app.pgp_utils import PGPException, load_public_key_and_check File "/code/app/pgp_utils.py", line 14, in gpg = gnupg.GPG(gnupghome=GNUPGHOME) File "/usr/local/lib/python3.7/site-packages/gnupg.py", line 827, in __init__ raise ValueError('gnupghome should be a directory (it isn\'t): %s' % gnupghome) ValueError: gnupghome should be a directory (it isn't): /sl/pgp Changing my simplelogin.env to use homedir instead, made this process work. Hope this helps. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a49ac5de3..a4b4e4a7c 100644 --- a/README.md +++ b/README.md @@ -411,7 +411,7 @@ DB_URI=postgresql://myuser:mypassword@sl-db:5432/simplelogin FLASK_SECRET=put_something_secret_here -GNUPGHOME=/sl/pgp +HOMEDIR=/sl/pgp LOCAL_FILE_UPLOAD=1