From 9ac6f1147b612822ed3467266fb7cc49c01bde08 Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Tue, 3 Oct 2023 01:34:56 +0300 Subject: [PATCH] Fix slemicro check for selinux 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 9a339a7d5230..7ef592dc795a --- 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 } +