Skip to content

Commit f4972c4

Browse files
committed
recover
1 parent b914a9e commit f4972c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sbin/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ source ~/.bash_profile
2020

2121
export local_host="`hostname --fqdn`"
2222

23-
ipaddr=$(hostname -i)
23+
ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')
2424

2525
function isLocal(){
2626
if [ "$1" == "127.0.0.1" ];then

web/config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
dss_port="8088"
33

44
#URL of the backend linkis gateway
5-
linkis_url="http://localhost:20401"
5+
linkis_url="http://localhost:9001"
66

77
#dss ip address
8-
dss_ipaddr=$(hostname -i)
8+
dss_ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')

0 commit comments

Comments
 (0)