diff options
-rwxr-xr-x | scripts/install/install-image | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/install/install-image b/scripts/install/install-image index 13de9ab0..5e040e5e 100755 --- a/scripts/install/install-image +++ b/scripts/install/install-image @@ -139,7 +139,12 @@ fetch_iso_by_url () echo "Checking digital signature..." if [ -f ${filename}.minisig ]; then minisign -V -q -p /usr/share/vyos/keys/vyos-release.minisign.pub -m ${filename} -x ${filename}.minisig - elif [ -f ${filename}.asc ]; then + if [ $? -ne 0 ]; then + echo "Signature check FAILED, trying BACKUP key..." + minisign -V -q -p /usr/share/vyos/keys/vyos-backup.minisign.pub -m ${filename} -x ${filename}.minisig + fi + fi + if [ -f ${filename}.asc ]; then gpg --keyring /etc/apt/trusted.gpg --verify ${filename}.asc fi if [ $? -ne 0 ]; then |