hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject incubator-hawq git commit: HAWQ-235. Fix fetch Mac ip addresses command.
Date Mon, 01 Feb 2016 03:45:25 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 163a35c36 -> 91c50f70f


HAWQ-235. Fix fetch Mac ip addresses command.


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/91c50f70
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/91c50f70
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/91c50f70

Branch: refs/heads/master
Commit: 91c50f70f972c6f443aad8e54a498a5fa2ca9e8a
Parents: 163a35c
Author: rlei <rlei@pivotal.io>
Authored: Mon Feb 1 11:40:45 2016 +0800
Committer: rlei <rlei@pivotal.io>
Committed: Mon Feb 1 11:41:10 2016 +0800

----------------------------------------------------------------------
 tools/bin/lib/hawqinit.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/91c50f70/tools/bin/lib/hawqinit.sh
----------------------------------------------------------------------
diff --git a/tools/bin/lib/hawqinit.sh b/tools/bin/lib/hawqinit.sh
index daaa28a..2f3cd0c 100755
--- a/tools/bin/lib/hawqinit.sh
+++ b/tools/bin/lib/hawqinit.sh
@@ -95,7 +95,7 @@ standby_host_lowercase=`lowercase "${standby_host_name}"`
 get_all_ip_address() {
     if [ "${distro_based_on}" = "RedHat" ] && [ "${distro_major_version}" -ge 7 ];
then
         cmd_str="${IFCONFIG} |${GREP} -v '127.0.0' | ${GREP} 'inet '|${AWK} '{print \$2}'"
-    elif [ "${distro_based_on}" = "Mac" ] && [ "${distro_version:0:5}" = "10.11"
]; then
+    elif [ "${distro_based_on}" = "Mac" ]; then
         cmd_str="${IFCONFIG} |${GREP} -v '127.0.0' | ${GREP} 'inet '|${AWK} '{print \$2}'"
     else
         cmd_str="${IFCONFIG} |${GREP} -v '127.0.0' |${AWK} '/inet addr/{print substr(\$2,6)}'"


Mime
View raw message