Explorar o código

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

Chad Roberts %!s(int64=11) %!d(string=hai) anos
pai
achega
c9a190453a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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" ]
 elif [ -f  "/etc/redhat-release" ]
 then
 then
   grep -sqiE "^centos ${pattern}5" /etc/redhat-release && current_os=$C5
   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" ]
 elif [ -f  "/etc/SuSE-release" ]
 then
 then
   grep -sqE "${pattern}11" /etc/SuSE-release && current_os=$SUSE11
   grep -sqE "${pattern}11" /etc/SuSE-release && current_os=$SUSE11