From dd2d49fbd1334b00ae7ca1d139c114aaf016d19a 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: 萌森 --- sentinel/1.8.6/data.yml | 18 +++++++++--------- sentinel/1.8.6/scripts/init.sh | 9 +++++++-- sentinel/1.8.6/scripts/uninstall.sh | 10 ++++++++++ sentinel/1.8.6/scripts/upgrade.sh | 9 +++++++-- 4 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 sentinel/1.8.6/scripts/uninstall.sh diff --git a/sentinel/1.8.6/data.yml b/sentinel/1.8.6/data.yml index 151458095..7b2ee85ca 100644 --- a/sentinel/1.8.6/data.yml +++ b/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/sentinel/1.8.6/scripts/init.sh b/sentinel/1.8.6/scripts/init.sh index b4e373186..77b849120 100644 --- a/sentinel/1.8.6/scripts/init.sh +++ b/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/sentinel/1.8.6/scripts/uninstall.sh b/sentinel/1.8.6/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/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/sentinel/1.8.6/scripts/upgrade.sh b/sentinel/1.8.6/scripts/upgrade.sh index b4e373186..77b849120 100644 --- a/sentinel/1.8.6/scripts/upgrade.sh +++ b/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