Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bargull <[email protected]>
  • Loading branch information
mbargull committed Jul 1, 2024
1 parent 8b65989 commit f1bddc6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scripts/fix_rpm
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ if [[ "$DISTRO_VER" == "7" ]]; then
fi

# Resolves a nasty NOKEY warning that appears when using yum.
if [[ "${DISTRO_NAME}${DISTRO_VER}" == "centos7" ]]; then \
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \
if [[ "${DISTRO_NAME}${DISTRO_VER}" == "centos7" ]]; then
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
if [[ "$(uname -m)" == "ppc64le" ]]; then
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le;
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le
elif [[ "$(uname -m)" == "aarch64" ]]; then
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7-aarch64;
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7-aarch64
fi
elif [[ "${DISTRO_NAME}${DISTRO_VER}" == "centos8" ]]; then \
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial; \
elif [[ "${DISTRO_NAME}${DISTRO_VER}" == "ubi8" ]]; then \
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release; \
elif [[ "${DISTRO_NAME}${DISTRO_VER}" == "almalinux8" ]]; then \
elif [[ "${DISTRO_NAME}${DISTRO_VER}" == "centos8" ]]; then
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
elif [[ "${DISTRO_NAME}${DISTRO_VER}" == "ubi8" ]]; then
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
elif [[ "${DISTRO_NAME}${DISTRO_VER}" == "almalinux8" ]]; then
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
fi

0 comments on commit f1bddc6

Please sign in to comment.