This is an automated email from the ASF dual-hosted git repository.

aiceflower pushed a commit to branch release-0.9.4
in repository https://gitbox.apache.org/repos/asf/linkis.git

commit c94d4dcfa371cfee3e51ef085175418dd9bb3859
Author: 5herhom <[email protected]>
AuthorDate: Tue Feb 18 14:00:37 2020 +0800

    Update start-all.sh
    
    Repair bug that two ips are gotten.
---
 bin/start-all.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/start-all.sh b/bin/start-all.sh
index 2dc78848d2..66e5c01f4d 100644
--- a/bin/start-all.sh
+++ b/bin/start-all.sh
@@ -45,7 +45,7 @@ fi
 
 local_host="`hostname --fqdn`"
 
-ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print 
gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')
+ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print 
gensub(/(.*)\/(.*)/, "\\1", "g", $2)}'|awk 'NR==1')
 
 function isLocal(){
     if [ "$1" == "127.0.0.1" ];then


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to