dot

packages and services management
Log | Files | Refs | README

commit 7b50a659d59fb252cfbe5e43b8f54f2a2b733fb6
parent 3c8a7e25bc80257979100b4857329386071e14e8
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon,  3 Dec 2018 04:05:58 +0100

import and export more safely

Diffstat:
Mbin/gpg-export | 9+++++----
Mbin/gpg-import | 2+-
Adot/mblaze/sort/dragonflybsd.org--mailman-owner | 1+
3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/bin/gpg-export b/bin/gpg-export @@ -1,6 +1,7 @@ #!/bin/sh -ex -cd "$HOME/.gnupg" -cp -r "private-keys-v1.d" "/mnt/key/gpg" -gpg --export >"/mnt/key/gpg/pubring.gpg" -gpg --export-ownertrust >"/mnt/key/gpg/trustdb.txt" +mkdir -p /mnt/key/gpg +cd /mnt/key/gpg +cp -r "$HOME/.gnupg/private-keys-v1.d" . +gpg -a --export >pubring.txt +gpg --export-ownertrust >trustdb.txt diff --git a/bin/gpg-import b/bin/gpg-import @@ -3,6 +3,6 @@ mkdir -p -m 0700 "$HOME/.gnupg" cp -r /mnt/key/gpg/private-keys-v1.d/ "$HOME/.gnupg" -gpg --import /mnt/key/gpg/pubring.kbx +gpg --import /mnt/key/gpg/pubring.txt gpg --import-ownertrust </mnt/key/gpg/trustdb.txt diff --git a/dot/mblaze/sort/dragonflybsd.org--mailman-owner b/dot/mblaze/sort/dragonflybsd.org--mailman-owner @@ -0,0 +1 @@ +"From" ~~~ "*mailman-owner@dragonflybsd.org*"