Skip to content

Commit

Permalink
check variant before version to decide rpm target and packager
Browse files Browse the repository at this point in the history
  • Loading branch information
adrecord committed Jun 2, 2023
1 parent fa0dc59 commit 2c4db71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,10 @@ setup_selinux() {
rpm_site_infix=slemicro
package_installer=zypper
fi
elif [ "${ID_LIKE:-}" = coreos ] || [ "${VARIANT_ID:-}" = coreos ]; then
rpm_target=coreos
rpm_site_infix=coreos
package_installer=rpm-ostree
elif [ "${VERSION_ID%%.*}" = "7" ]; then
rpm_target=el7
rpm_site_infix=centos/7
Expand All @@ -522,10 +526,6 @@ setup_selinux() {
rpm_target=el8
rpm_site_infix=centos/8
package_installer=yum
elif [ "${ID_LIKE:-}" = coreos ] || [ "${VARIANT_ID:-}" = coreos ]; then
rpm_target=coreos
rpm_site_infix=coreos
package_installer=rpm-ostree
else
rpm_target=el9
rpm_site_infix=centos/9
Expand Down

0 comments on commit 2c4db71

Please sign in to comment.