Pārlūkot izejas kodu

AMBARI-3609. os_type_check.sh for RHEL is too restrictive (Trevor McKay via croberts)

Chad Roberts 11 gadi atpakaļ
vecāks
revīzija
c9a190453a
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      ambari-server/src/main/python/os_type_check.sh

+ 2 - 2
ambari-server/src/main/python/os_type_check.sh

@@ -43,8 +43,8 @@ then
 elif [ -f  "/etc/redhat-release" ]
 then
   grep -sqiE "^centos ${pattern}5" /etc/redhat-release && current_os=$C5
-  grep -sqE "^Red Hat Enterprise Linux Server ${pattern}6" /etc/redhat-release && current_os=$RH6
-  grep -sqE "^Red Hat Enterprise Linux Server ${pattern}5" /etc/redhat-release && current_os=$RH5
+  grep -sqE "^Red Hat Enterprise Linux ${pattern}6" /etc/redhat-release && current_os=$RH6
+  grep -sqE "^Red Hat Enterprise Linux ${pattern}5" /etc/redhat-release && current_os=$RH5
 elif [ -f  "/etc/SuSE-release" ]
 then
   grep -sqE "${pattern}11" /etc/SuSE-release && current_os=$SUSE11