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

casion pushed a commit to branch dev-1.3.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git


The following commit(s) were added to refs/heads/dev-1.3.1 by this push:
     new 0712ff9a1 [BUG]improve dist script  (#3931)
0712ff9a1 is described below

commit 0712ff9a1e2b002c4fa7dbd25115f99a63c79046
Author: GuoPhilipse <[email protected]>
AuthorDate: Wed Nov 30 21:54:47 2022 +0800

    [BUG]improve dist script  (#3931)
---
 linkis-dist/bin/common.sh          | 2 +-
 linkis-dist/package/sbin/common.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/linkis-dist/bin/common.sh b/linkis-dist/bin/common.sh
index be1717156..e3a17877a 100644
--- a/linkis-dist/bin/common.sh
+++ b/linkis-dist/bin/common.sh
@@ -19,7 +19,7 @@ source ~/.bash_profile
 
 export local_host="`hostname --fqdn`"
 
-ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print 
gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')
+ipaddr=127.0.0.1
 
 ## color
 RED='\033[0;31m'
diff --git a/linkis-dist/package/sbin/common.sh 
b/linkis-dist/package/sbin/common.sh
index 268bdfe28..6a9acb207 100644
--- a/linkis-dist/package/sbin/common.sh
+++ b/linkis-dist/package/sbin/common.sh
@@ -19,7 +19,7 @@ source ~/.bash_profile
 
 export local_host="`hostname --fqdn`"
 
-ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print 
gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')
+ipaddr=127.0.0.1
 
 ## color
 RED='\033[0;31m'


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

Reply via email to