Skip to content

Commit

Permalink
ZCS-13984:Use SHA-256 GPG Key for RHEL9
Browse files Browse the repository at this point in the history
  • Loading branch information
umagmrit committed May 2, 2024
1 parent 4b4f92d commit d81c0f6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions rpmconf/Install/Util/utilfunc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2207,10 +2207,18 @@ fi
print "Aborting, unknown platform: $PLATFORM"
exit 1
fi
rpm -q gpg-pubkey-0f30c305-5564be70 > /dev/null
if [ $PLATFORM = "RHEL9_64" ]; then
rpm -q gpg-pubkey-7c66bd84-6583eafa > /dev/null
else
rpm -q gpg-pubkey-0f30c305-5564be70 > /dev/null
fi
if [ $? -ne 0 ]; then
echo "Importing Zimbra GPG key"
rpm --import https://files.zimbra.com/downloads/security/public.key >>$LOGFILE 2>&1
if [ $PLATFORM = "RHEL9_64" ]; then
rpm --import https://files.zimbra.com/downloads/security/public-sha-256.key >>$LOGFILE 2>&1
else
rpm --import https://files.zimbra.com/downloads/security/public.key >>$LOGFILE 2>&1
fi
if [ $? -ne 0 ]; then
echo "ERROR: Unable to retrive Zimbra GPG key for package validation"
echo "Please fix system to allow normal package installation before proceeding"
Expand Down

0 comments on commit d81c0f6

Please sign in to comment.