Skip to content

Commit

Permalink
Optimize script
Browse files Browse the repository at this point in the history
  • Loading branch information
zqburde committed Aug 8, 2023
1 parent 65a4f6e commit 7c38a68
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
12 changes: 7 additions & 5 deletions assembly/bin/dssinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ if [ -z $DSS_FILE_NAME ]; then
fi

function replaceCommonIp() {
if [ -z "$DSS_SERVER_INSTALL_IP" ]; then
if [ -z "$DSS_SERVER_INSTALL_IP" ]; then
DSS_SERVER_INSTALL_IP=$LOCAL_IP
fi

if [ -z "$DSS_SERVER_PORT" ]; then
DSS_SERVER_PORT=9002
fi
Expand All @@ -83,12 +84,13 @@ function replaceCommonIp() {
DSS_APPS_SERVER_PORT=9003
fi

if [[ $GATEWAY_INSTALL_IP == "127.0.0.1" ]] || [ -z "$GATEWAY_INSTALL_IP" ]; then
if [[ $GATEWAY_INSTALL_IP == "127.0.0.1" ]] || [ -z "$GATEWAY_INSTALL_IP" ]; then
GATEWAY_INSTALL_IP=$LOCAL_IP
fi
if [[ $EUREKA_INSTALL_IP == "127.0.0.1" ]] || [ -z "$EUREKA_INSTALL_IP" ]; then
fi

if [[ $EUREKA_INSTALL_IP == "127.0.0.1" ]] || [ -z "$EUREKA_INSTALL_IP" ]; then
EUREKA_INSTALL_IP=$LOCAL_IP
fi
fi
}
##替换真实的IP
replaceCommonIp
Expand Down
2 changes: 1 addition & 1 deletion assembly/config/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ GATEWAY_INSTALL_IP=127.0.0.1
GATEWAY_PORT=9001

### Linkis BML Token
BML_AUTH=BML-14ddab34fbd640afa523dd8d1496c3c3
BML_AUTH=BML-AUTH

################### The install Configuration of all Micro-Services start #####################
#
Expand Down
8 changes: 4 additions & 4 deletions conf/dss.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ wds.linkis.mysql.is.encrypt=false
wds.linkis.server.mybatis.datasource.url=
wds.linkis.server.mybatis.datasource.username=
wds.linkis.server.mybatis.datasource.password=
wds.linkis.bml.auth.token.value=
linkis.configuration.linkisclient.auth.token.value=
wds.linkis.context.client.auth.value=
wds.linkis.errorcode.auth.token=
wds.linkis.bml.auth.token.value=BML-AUTH
linkis.configuration.linkisclient.auth.token.value=BML-AUTH
wds.linkis.context.client.auth.value=BML-AUTH
wds.linkis.errorcode.auth.token=BML-AUTH

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

Expand Down

0 comments on commit 7c38a68

Please sign in to comment.