Skip to content

Commit 584b04f

Browse files
committed
Optimize script
1 parent e0b7a9f commit 584b04f

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

assembly/bin/dssinstall.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ if [ -z $DSS_FILE_NAME ]; then
6969
fi
7070

7171
function replaceCommonIp() {
72-
if [ -z "$DSS_SERVER_INSTALL_IP" ]; then
72+
if [ -z "$DSS_SERVER_INSTALL_IP" ]; then
7373
DSS_SERVER_INSTALL_IP=$LOCAL_IP
7474
fi
75+
7576
if [ -z "$DSS_SERVER_PORT" ]; then
7677
DSS_SERVER_PORT=9002
7778
fi
@@ -83,12 +84,13 @@ function replaceCommonIp() {
8384
DSS_APPS_SERVER_PORT=9003
8485
fi
8586

86-
if [[ $GATEWAY_INSTALL_IP == "127.0.0.1" ]] || [ -z "$GATEWAY_INSTALL_IP" ]; then
87+
if [[ $GATEWAY_INSTALL_IP == "127.0.0.1" ]] || [ -z "$GATEWAY_INSTALL_IP" ]; then
8788
GATEWAY_INSTALL_IP=$LOCAL_IP
88-
fi
89-
if [[ $EUREKA_INSTALL_IP == "127.0.0.1" ]] || [ -z "$EUREKA_INSTALL_IP" ]; then
89+
fi
90+
91+
if [[ $EUREKA_INSTALL_IP == "127.0.0.1" ]] || [ -z "$EUREKA_INSTALL_IP" ]; then
9092
EUREKA_INSTALL_IP=$LOCAL_IP
91-
fi
93+
fi
9294
}
9395
##替换真实的IP
9496
replaceCommonIp

assembly/config/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ GATEWAY_INSTALL_IP=127.0.0.1
2525
GATEWAY_PORT=9001
2626

2727
### Linkis BML Token
28-
BML_AUTH=BML-14ddab34fbd640afa523dd8d1496c3c3
28+
BML_AUTH=BML-AUTH
2929

3030
################### The install Configuration of all Micro-Services start #####################
3131
#

conf/dss.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ wds.linkis.mysql.is.encrypt=false
2323
wds.linkis.server.mybatis.datasource.url=
2424
wds.linkis.server.mybatis.datasource.username=
2525
***REMOVED***
26-
wds.linkis.bml.auth.token.value=
27-
linkis.configuration.linkisclient.auth.token.value=
28-
wds.linkis.context.client.auth.value=
29-
wds.linkis.errorcode.auth.token=
26+
wds.linkis.bml.auth.token.value=BML-AUTH
27+
linkis.configuration.linkisclient.auth.token.value=BML-AUTH
28+
wds.linkis.context.client.auth.value=BML-AUTH
29+
wds.linkis.errorcode.auth.token=BML-AUTH
3030

3131
wds.dss.check.server.active.period=30
3232

0 commit comments

Comments
 (0)