fixing the GPG_KEY path for rhel, onedir does not need a special path for centos 7.

This commit is contained in:
Gareth J. Greenaway 2022-08-01 10:46:26 -07:00
parent 244e6cb858
commit f708e36b94
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41

View file

@ -4464,11 +4464,7 @@ __install_saltstack_rhel_onedir_repository() {
# Avoid using '$releasever' variable for yum.
# Instead, this should work correctly on all RHEL variants.
base_url="${HTTP_VAL}://${_REPO_URL}/${_ONEDIR_DIR}/${__PY_VERSION_REPO}/redhat/${DISTRO_MAJOR_VERSION}/\$basearch/${ONEDIR_REV}/"
if [ "${DISTRO_MAJOR_VERSION}" -eq 7 ]; then
gpg_key="SALTSTACK-GPG-KEY.pub base/RPM-GPG-KEY-CentOS-7"
else
gpg_key="SALTSTACK-GPG-KEY.pub"
fi
gpg_key="SALTSTACK-GPG-KEY.pub"
gpg_key_urls=""
for key in $gpg_key; do