Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change GNUPG home directory variable #1679

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 3, 2023

  1. 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 <module>
        from app.pgp_utils import PGPException, load_public_key_and_check
      File "/code/app/pgp_utils.py", line 14, in <module>
        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.
    joshwenke committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    215bfe1 View commit details
    Browse the repository at this point in the history