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 Dec 29, 2023
1 parent 3dde0e0 commit f2e13e3
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 @@ -2221,10 +2221,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 f2e13e3

Please sign in to comment.