Fix check for (open)SUSE version (#6791)

Fix the check, if we're running SUSE or openSUSE in the installer
script.

Signed-off-by: phoenix <felix.niederwanger@suse.com>
This commit is contained in:
Felix Niederwanger
2023-02-06 20:27:12 +01:00
committed by GitHub
parent ee007bc7cf
commit 7e59376bb9

View File

@@ -466,7 +466,7 @@ setup_selinux() {
fi
[ -r /etc/os-release ] && . /etc/os-release
if [ "${ID_LIKE%%[ ]*}" = "suse" ]; then
if [ `expr "${ID_LIKE}" : ".*suse.*"` != 0 ]; then
rpm_target=sle
rpm_site_infix=microos
package_installer=zypper