2018-04-29 19:58:44 -07:00
|
|
|
#!/bin/ash
|
|
|
|
set -e -o pipefail
|
|
|
|
. /etc/functions
|
|
|
|
|
|
|
|
# Post processing of keys
|
2018-05-17 19:52:11 -07:00
|
|
|
|
|
|
|
# Import user's keys
|
2019-01-26 12:20:31 -05:00
|
|
|
gpg --import /.gnupg/keys/*.key 2>/dev/null || true
|
|
|
|
|
|
|
|
#Import trustdb if it exists
|
|
|
|
if [ -s /.gnupg/keys/otrust.txt ]; then
|
|
|
|
gpg --import-ownertrust /.gnupg/keys/otrust.txt
|
|
|
|
fi
|
2018-04-29 19:58:44 -07:00
|
|
|
|
2018-05-17 19:52:11 -07:00
|
|
|
# Import trusted distro keys allowed for ISO signing
|
|
|
|
gpg --homedir=/etc/distro/ --import /etc/distro/keys/* 2>/dev/null || true
|
|
|
|
# Add user's keys to the list of trusted keys for ISO signing
|
|
|
|
gpg --export | gpg --homedir=/etc/distro/ --import 2>/dev/null || true
|