Browse Source

check variant before version to decide rpm target and packager

Signed-off-by: Andy Record <adrecord@gmail.com>
pull/7681/head
Andy Record 1 year ago committed by Brad Davidson
parent
commit
afc88cec88
  1. 8
      install.sh

8
install.sh

@ -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
@ -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

Loading…
Cancel
Save