This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/linkis.git
The following commit(s) were added to refs/heads/master by this push:
new 709e5946e [LINKIS-5043] Only start the eureka service if DISCOVERY is
EUREKA (#5046)
709e5946e is described below
commit 709e5946e58547866793e527bd89a58dcd4521f1
Author: Zhen Wang <[email protected]>
AuthorDate: Sun Dec 17 23:43:51 2023 +0800
[LINKIS-5043] Only start the eureka service if DISCOVERY is EUREKA (#5046)
---
linkis-dist/package/sbin/linkis-start-all.sh | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/linkis-dist/package/sbin/linkis-start-all.sh
b/linkis-dist/package/sbin/linkis-start-all.sh
index 55c1ba684..d70b37d19 100644
--- a/linkis-dist/package/sbin/linkis-start-all.sh
+++ b/linkis-dist/package/sbin/linkis-start-all.sh
@@ -64,10 +64,12 @@ echo "<-------------------------------->"
echo "Linkis manager data is being cleared"
sh $LINKIS_HOME/sbin/clear-server.sh
-#linkis-mg-eureka
-export SERVER_NAME="mg-eureka"
-SERVER_IP=$EUREKA_INSTALL_IP
-startApp
+if [ "$DISCOVERY" == "EUREKA" ]; then
+ #linkis-mg-eureka
+ export SERVER_NAME="mg-eureka"
+ SERVER_IP=$EUREKA_INSTALL_IP
+ startApp
+fi
#linkis-mg-gateway
SERVER_NAME="mg-gateway"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]