From ca05385a289459295d9c0f11e3a8bb25462c072d Mon Sep 17 00:00:00 2001 From: Zzm0809 <934230207@qq.com> Date: Mon, 9 Dec 2024 16:39:54 +0800 Subject: [PATCH] Fix automation script path issue --- docs/docs/developer_guide/local_debug.md | 4 ++-- script/bin/auto.sh | 2 +- script/bin/init_tools_main.sh | 7 +------ 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/docs/docs/developer_guide/local_debug.md b/docs/docs/developer_guide/local_debug.md index ca4831c394..a21562056e 100644 --- a/docs/docs/developer_guide/local_debug.md +++ b/docs/docs/developer_guide/local_debug.md @@ -29,14 +29,14 @@ title: 本地调试 ### 环境要求 -| 环境 | 版本 | +**| 环境 | 版本 | |:----------------:|:------------------------:| | npm | 10+ | | node.js | 18+ | | jdk | Java8 或者 Java11 | | maven | 3.8+ | | lombok | IDEA插件安装 | -| MySQL/PostgreSQL | MySQL5.7+ / PostgreSQL15 | +| MySQL/PostgreSQL | MySQL5.7+ / PostgreSQL15 |** ### 代码克隆 diff --git a/script/bin/auto.sh b/script/bin/auto.sh index 4789c275f7..654abf08a3 100644 --- a/script/bin/auto.sh +++ b/script/bin/auto.sh @@ -107,7 +107,7 @@ if [ -z "$APP_PORT" ]; then APP_PORT=8888 fi -# 函数:检查健康检查端点的状态 +# Function: Check the status of the health check endpoint check_health() { curl --silent --max-time 2 --output /dev/null --write-out "%{http_code}" "http://localhost:$APP_PORT/actuator/health" } diff --git a/script/bin/init_tools_main.sh b/script/bin/init_tools_main.sh index da14e5c25f..c15177d846 100644 --- a/script/bin/init_tools_main.sh +++ b/script/bin/init_tools_main.sh @@ -74,9 +74,6 @@ echo -e "${GREEN}Dinky root path: ${APP_HOME} ${RESET}" sudo chmod +x "${APP_HOME}"/bin/init_*.sh -/init_cleanup.sh -./init_tools_main.sh - EXTENDS_HOME="${APP_HOME}/extends" if [ ! -d "${EXTENDS_HOME}" ]; then echo -e "${RED} ${EXTENDS_HOME} Directory does not exist, please check${RESET}" @@ -103,7 +100,7 @@ if [ ! -d "${DINKY_LIB}" ]; then exit 1 fi -# 函数:检查命令是否存在,不存在则尝试安装 +# Function: Check whether the command exists, if not, try to install it check_command() { local cmd="$1" echo -e "${BLUE}Check if command: $cmd exists...${RESET}" @@ -257,12 +254,10 @@ else echo -e "${GREEN}The current Flink version number deployed by Dinky:${FLINK_VERSION_SCAN}${RESET}" fi -# 根据 Dinky 部署的Flink对应的版本号,获取对应的 Flink 版本 CURRENT_FLINK_FULL_VERSION=${version_map[$FLINK_VERSION_SCAN]} echo -e "${GREEN}Obtain the version number corresponding to the deployed Flink (full version number) based on the scanned current Flink version number: flink-${CURRENT_FLINK_FULL_VERSION}${RESET}" -# 步骤2:获取Dinky部署的Flink对应的版本号,然后下载Flink安装包 while true; do read -p "It is detected that the Flink version number deployed by Dinky is: ${FLINK_VERSION_SCAN}, and the Flink installation package version number that needs to be downloaded is: flink-${CURRENT_FLINK_FULL_VERSION}-bin-scala_2.12.tgz. Please choose whether to initialize Flink related dependencies?(yes/no/exit)" is_init_flink is_init_flink=$(echo "$is_init_flink" | tr '[:upper:]' '[:lower:]' | tr -d '[:space:]')