initialize gpg before importing keys

If the .gnupg directory doesn't exist and we try to import keys
gpg won't be able to import the keys on that run, running --list-keys
first sets things up before we try to import
This commit is contained in:
Bryan 2016-02-05 22:58:32 -08:00
parent 1b5df29cb8
commit cf41eacb0d
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ if [[ ! -f /opt/aptly/aptly.sec ]] || [[ ! -f /opt/aptly/aptly.pub ]]; then
fi
# Import Ubuntu keyrings
gpg --list-keys
gpg --no-default-keyring \
--keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg \
--export | \