From fec8030baf1196c1782741ab43b2322444b89627 Mon Sep 17 00:00:00 2001 From: Justin-Octo <116027513+justin-octo@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:55:09 -0700 Subject: [PATCH 1/2] RHEL identity update for 8 RHEL 8 removed the word "Server" from the PRETTY NAME. This caused RHEL 8 servers to not be able to identify --- modules/bash-commons/src/os.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/bash-commons/src/os.sh b/modules/bash-commons/src/os.sh index 4339cb1..8e5fe62 100644 --- a/modules/bash-commons/src/os.sh +++ b/modules/bash-commons/src/os.sh @@ -30,10 +30,10 @@ function os_is_centos { } # Returns true (0) if this is a RedHat server at the given version or false (1) otherwise. The version number -# can use regex. If you don't care about the version, leave it unspecified. +# can use regex. If you don't care about the version, leave it unspecified. RedHat 8+ removed the word "Server". function os_is_redhat { local -r version="$1" - grep -q "Red Hat Enterprise Linux Server release $version" /etc/*release + grep -q "Red Hat Enterprise Linux release $version" /etc/*release || grep -q "Red Hat Enterprise Linux Server release $version" /etc/*release } From dc2a359a0856aee30a527e8474fe1e71de220110 Mon Sep 17 00:00:00 2001 From: James Kwon <96548424+hongil0316@users.noreply.github.com> Date: Thu, 31 Oct 2024 17:31:22 -0400 Subject: [PATCH 2/2] Test Trigger