From cbf901374e9dd0e16aaa41b776d24dda76b0bc10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E6=A3=AE?= Date: Wed, 31 Jul 2024 13:00:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E6=8A=A4=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 萌森 --- .github/README.md | 2 +- README.md | 2 +- apps/sentinel/1.8.6/data.yml | 18 +++++++++--------- apps/sentinel/1.8.6/scripts/init.sh | 9 +++++++-- apps/sentinel/1.8.6/scripts/uninstall.sh | 10 ++++++++++ apps/sentinel/1.8.6/scripts/upgrade.sh | 9 +++++++-- 6 files changed, 35 insertions(+), 15 deletions(-) create mode 100644 apps/sentinel/1.8.6/scripts/uninstall.sh diff --git a/.github/README.md b/.github/README.md index 58fb1725..87af7a0f 100644 --- a/.github/README.md +++ b/.github/README.md @@ -117,7 +117,7 @@ | 🟢 | | QingLong | https://github.com/whyour/qinglong/ | 【青龙】支持 Python3、JavaScript、Shell、Typescript 的定时任务管理平台 | | | 🟢 | | Reader3 | https://github.com/hectorqin/reader/ | 【阅读3】阅读3服务器版,不需要手机 | | | 🟢 | | Redis | https://redis.io/ | 从世界上最快的内存数据库创建者那里获取该数据库 | | -| 🔴 | | Sentinel | https://sentinelguard.io/ | 面向分布式、多语言异构化服务架构的流量治理组件 | | +| 🟢 | | Sentinel | https://sentinelguard.io/ | 面向分布式、多语言异构化服务架构的流量治理组件 | | | 🟢 | | SiYuan | https://b3log.org/siyuan/ | 【思源笔记】一款隐私优先、自托管、完全开源的个人知识管理软件 | | | 🔴 | | SpeedTest | https://www.speedtest.net/ | 互联网速度测试 | SpeedTest | | 🔴 | | SpeedTest-Tracker | https://docs.speedtest-tracker.dev/ | Speedtest Tracker 是一款自托管互联网性能跟踪应用程序,可针对 Ookla 的 Speedtest 服务运行速度测试检查 | | diff --git a/README.md b/README.md index 245347f2..60a9da20 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ | 🟢 | | QingLong | https://github.com/whyour/qinglong/ | 【青龙】支持 Python3、JavaScript、Shell、Typescript 的定时任务管理平台 | | | 🟢 | | Reader3 | https://github.com/hectorqin/reader/ | 【阅读3】阅读3服务器版,不需要手机 | | | 🟢 | | Redis | https://redis.io/ | 从世界上最快的内存数据库创建者那里获取该数据库 | | -| 🔴 | | Sentinel | https://sentinelguard.io/ | 面向分布式、多语言异构化服务架构的流量治理组件 | | +| 🟢 | | Sentinel | https://sentinelguard.io/ | 面向分布式、多语言异构化服务架构的流量治理组件 | | | 🟢 | | SiYuan | https://b3log.org/siyuan/ | 【思源笔记】一款隐私优先、自托管、完全开源的个人知识管理软件 | | | 🔴 | | SpeedTest | https://www.speedtest.net/ | 互联网速度测试 | SpeedTest | | 🔴 | | SpeedTest-Tracker | https://docs.speedtest-tracker.dev/ | Speedtest Tracker 是一款自托管互联网性能跟踪应用程序,可针对 Ookla 的 Speedtest 服务运行速度测试检查 | | diff --git a/apps/sentinel/1.8.6/data.yml b/apps/sentinel/1.8.6/data.yml index 15145809..7b2ee85c 100644 --- a/apps/sentinel/1.8.6/data.yml +++ b/apps/sentinel/1.8.6/data.yml @@ -3,16 +3,16 @@ additionalProperties: - default: 8858 edit: true envKey: PANEL_APP_PORT_HTTP - labelEn: Web port - labelZh: Web 端口 + labelZh: WebUI 端口 + labelEn: WebUI Port required: true rule: paramPort type: number - default: 8719 edit: true - envKey: COMMUNICATION_PORT - labelEn: Communication port - labelZh: 通讯端口 + envKey: PANEL_APP_PORT_API + labelZh: API 端口 + labelEn: API Port required: true rule: paramPort type: number @@ -49,12 +49,12 @@ additionalProperties: - default: "false" edit: true envKey: SENTINEL_DASHBOARD_FEIGN_ENABLED - labelEn: Feign enabled - labelZh: Feign 支持是否启用 + labelZh: 启用 Feign + labelEn: Enable Feign required: false type: select values: - - label: "true" + - label: 启用 value: "true" - - label: "false" + - label: 禁用 value: "false" diff --git a/apps/sentinel/1.8.6/scripts/init.sh b/apps/sentinel/1.8.6/scripts/init.sh index b4e37318..77b84912 100644 --- a/apps/sentinel/1.8.6/scripts/init.sh +++ b/apps/sentinel/1.8.6/scripts/init.sh @@ -1,10 +1,15 @@ #!/bin/bash -if [[ -f .env ]]; then +if [ -f .env ]; then source .env + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "Check Finish." else - echo ".env not found." + echo "Error: .env file not found." fi diff --git a/apps/sentinel/1.8.6/scripts/uninstall.sh b/apps/sentinel/1.8.6/scripts/uninstall.sh new file mode 100644 index 00000000..c86c4fbc --- /dev/null +++ b/apps/sentinel/1.8.6/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/sentinel/1.8.6/scripts/upgrade.sh b/apps/sentinel/1.8.6/scripts/upgrade.sh index b4e37318..77b84912 100644 --- a/apps/sentinel/1.8.6/scripts/upgrade.sh +++ b/apps/sentinel/1.8.6/scripts/upgrade.sh @@ -1,10 +1,15 @@ #!/bin/bash -if [[ -f .env ]]; then +if [ -f .env ]; then source .env + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "Check Finish." else - echo ".env not found." + echo "Error: .env file not found." fi