summaryrefslogtreecommitdiff
path: root/src/keygen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/keygen.sh')
-rwxr-xr-xsrc/keygen.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/keygen.sh b/src/keygen.sh
index 90237af..70b896f 100755
--- a/src/keygen.sh
+++ b/src/keygen.sh
@@ -82,8 +82,13 @@ new_child()
82 sync "$child_root" "$parent_root" 82 sync "$child_root" "$parent_root"
83 sync "$parent_root" "$child_root" 83 sync "$parent_root" "$child_root"
84 84
85 gpg2 --check-trustdb --homedir "$parent_root"/root/.gnupg 85 for d in "$parent_root"/root/.gnupg "$child_root"/root/.gnupg
86 gpg2 --check-trustdb --homedir "$child_root"/root/.gnupg 86 do
87 gpg2 --import --homedir "$d" < "$d/pubring.gpg"
88 gpg2 --import --homedir "$d" < "$d/secring.gpg"
89 # cat "$d/pubring.gpg" "$d/secring.gpg" | gpg2 --import --homedir "$d"
90 gpg2 --check-trustdb --homedir "$d"
91 done
87 92
88 doublecheck "$child_root" "$parent_root" 93 doublecheck "$child_root" "$parent_root"
89} 94}