diff options
Diffstat (limited to 'data/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot')
-rwxr-xr-x | data/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/data/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot b/data/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot new file mode 100755 index 00000000..478b88fb --- /dev/null +++ b/data/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot @@ -0,0 +1,12 @@ +#!/bin/sh + +if ! command -v gpg &> /dev/null; then + echo "gpg binary could not be found" + exit 1 +fi + +GPG_KEY="/usr/share/vyos/keys/vyos-release.pub.asc" + +echo I: Import GPG key +gpg --import ${GPG_KEY} +exit $? |