From a6acdd0d75476a57c48db572225d8869339e7d63 Mon Sep 17 00:00:00 2001 From: Hussein Galal Date: Wed, 4 Oct 2023 00:40:35 +0300 Subject: [PATCH] Fix slemicro check for selinux (#8526) Signed-off-by: galal-hussein --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100755 => 100644 install.sh diff --git a/install.sh b/install.sh old mode 100755 new mode 100644 index 9a339a7d52..7ef592dc79 --- a/install.sh +++ b/install.sh @@ -509,7 +509,7 @@ setup_selinux() { rpm_target=sle rpm_site_infix=microos package_installer=zypper - if [ "${ID_LIKE:-}" = suse ] && [ "${VARIANT_ID:-}" = sle-micro ]; then + if [ "${ID_LIKE:-}" = suse ] && ( [ "${VARIANT_ID:-}" = sle-micro ] || [ "${ID:-}" = sle-micro ] ); then rpm_target=sle rpm_site_infix=slemicro package_installer=zypper @@ -1045,3 +1045,4 @@ eval set -- $(escape "${INSTALL_K3S_EXEC}") $(quote "$@") create_service_file service_enable_and_start } +