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:
parent
1b5df29cb8
commit
cf41eacb0d
|
@ -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 | \
|
||||
|
|
Loading…
Reference in New Issue