From 3d31005c61de80eb3832068dfc08cfc2dbc2abb1 Mon Sep 17 00:00:00 2001 From: UUBulb <35923940+uubulb@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:09:49 +0800 Subject: [PATCH] fix: docker image detection (#29) --- install.sh | 12 +-- install_en.sh | 12 +-- nezha/template.pot | 78 +++++++------- nezha/template.sh | 12 +-- nezha/translations/en_US/LC_MESSAGES/nezha.mo | Bin 7651 -> 7611 bytes nezha/translations/en_US/LC_MESSAGES/nezha.po | 96 +++++++++--------- nezha/translations/zh_CN/LC_MESSAGES/nezha.mo | Bin 7274 -> 7234 bytes nezha/translations/zh_CN/LC_MESSAGES/nezha.po | 84 +++++++-------- 8 files changed, 147 insertions(+), 147 deletions(-) diff --git a/install.sh b/install.sh index 7d5795a..269b0a0 100644 --- a/install.sh +++ b/install.sh @@ -125,29 +125,29 @@ installation_check() { if docker compose version >/dev/null 2>&1; then DOCKER_COMPOSE_COMMAND="docker compose" if sudo $DOCKER_COMPOSE_COMMAND ls | grep -qw "$NZ_DASHBOARD_PATH/docker-compose.yaml" >/dev/null 2>&1; then - NEZHA_IMAGES=$(sudo docker images --format "{{.Repository}}":"{{.Tag}}" | grep -w "nezha-dashboard") + NEZHA_IMAGES=$(sudo docker images --format "{{.Repository}}":"{{.Tag}}" | grep -w "nezhahq/nezha") if [ -n "$NEZHA_IMAGES" ]; then - echo "存在带有 nezha-dashboard 仓库的 Docker 镜像:" + echo "存在带有 nezha 仓库的 Docker 镜像:" echo "$NEZHA_IMAGES" IS_DOCKER_NEZHA=1 FRESH_INSTALL=0 return else - echo "未找到带有 nezha-dashboard 仓库的 Docker 镜像。" + echo "未找到带有 nezha 仓库的 Docker 镜像。" fi fi elif command -v docker-compose >/dev/null 2>&1; then DOCKER_COMPOSE_COMMAND="docker-compose" if sudo $DOCKER_COMPOSE_COMMAND -f "$NZ_DASHBOARD_PATH/docker-compose.yaml" config >/dev/null 2>&1; then - NEZHA_IMAGES=$(sudo docker images --format "{{.Repository}}":"{{.Tag}}" | grep -w "nezha-dashboard") + NEZHA_IMAGES=$(sudo docker images --format "{{.Repository}}":"{{.Tag}}" | grep -w "nezhahq/nezha") if [ -n "$NEZHA_IMAGES" ]; then - echo "存在带有 nezha-dashboard 仓库的 Docker 镜像:" + echo "存在带有 nezha 仓库的 Docker 镜像:" echo "$NEZHA_IMAGES" IS_DOCKER_NEZHA=1 FRESH_INSTALL=0 return else - echo "未找到带有 nezha-dashboard 仓库的 Docker 镜像。" + echo "未找到带有 nezha 仓库的 Docker 镜像。" fi fi fi diff --git a/install_en.sh b/install_en.sh index 6947949..1092e24 100644 --- a/install_en.sh +++ b/install_en.sh @@ -125,29 +125,29 @@ installation_check() { if docker compose version >/dev/null 2>&1; then DOCKER_COMPOSE_COMMAND="docker compose" if sudo $DOCKER_COMPOSE_COMMAND ls | grep -qw "$NZ_DASHBOARD_PATH/docker-compose.yaml" >/dev/null 2>&1; then - NEZHA_IMAGES=$(sudo docker images --format "{{.Repository}}":"{{.Tag}}" | grep -w "nezha-dashboard") + NEZHA_IMAGES=$(sudo docker images --format "{{.Repository}}":"{{.Tag}}" | grep -w "nezhahq/nezha") if [ -n "$NEZHA_IMAGES" ]; then - echo "Docker image with nezha-dashboard repository exists:" + echo "Docker image with nezha repository exists:" echo "$NEZHA_IMAGES" IS_DOCKER_NEZHA=1 FRESH_INSTALL=0 return else - echo "No Docker images with the nezha-dashboard repository were found." + echo "No Docker images with the nezha repository were found." fi fi elif command -v docker-compose >/dev/null 2>&1; then DOCKER_COMPOSE_COMMAND="docker-compose" if sudo $DOCKER_COMPOSE_COMMAND -f "$NZ_DASHBOARD_PATH/docker-compose.yaml" config >/dev/null 2>&1; then - NEZHA_IMAGES=$(sudo docker images --format "{{.Repository}}":"{{.Tag}}" | grep -w "nezha-dashboard") + NEZHA_IMAGES=$(sudo docker images --format "{{.Repository}}":"{{.Tag}}" | grep -w "nezhahq/nezha") if [ -n "$NEZHA_IMAGES" ]; then - echo "Docker image with nezha-dashboard repository exists:" + echo "Docker image with nezha repository exists:" echo "$NEZHA_IMAGES" IS_DOCKER_NEZHA=1 FRESH_INSTALL=0 return else - echo "No Docker images with the nezha-dashboard repository were found." + echo "No Docker images with the nezha repository were found." fi fi fi diff --git a/nezha/template.pot b/nezha/template.pot index ebfc277..c338ee9 100644 --- a/nezha/template.pot +++ b/nezha/template.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-02 13:39+0800\n" +"POT-Creation-Date: 2024-12-03 13:42+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -35,11 +35,11 @@ msgid "Unknown architecture: $uname" msgstr "" #: nezha/template.sh:130 nezha/template.sh:144 -msgid "Docker image with nezha-dashboard repository exists:" +msgid "Docker image with nezha repository exists:" msgstr "" #: nezha/template.sh:136 nezha/template.sh:150 -msgid "No Docker images with the nezha-dashboard repository were found." +msgid "No Docker images with the nezha repository were found." msgstr "" #: nezha/template.sh:163 @@ -145,155 +145,155 @@ msgid "" "install/linux/" msgstr "" -#: nezha/template.sh:334 +#: nezha/template.sh:333 msgid "Please enter the site title: " msgstr "" -#: nezha/template.sh:336 +#: nezha/template.sh:335 msgid "Please enter the exposed port: (default 8008)" msgstr "" -#: nezha/template.sh:338 +#: nezha/template.sh:337 msgid "" "Please specify the preset nezha-agent host in install commands: (e.g. " "example.com:443)" msgstr "" -#: nezha/template.sh:340 +#: nezha/template.sh:339 msgid "Do you prefer to connect Agent via TLS? [y/N]" msgstr "" -#: nezha/template.sh:355 +#: nezha/template.sh:352 msgid "Please specify the backend locale" msgstr "" -#: nezha/template.sh:360 +#: nezha/template.sh:357 msgid "Please enter [1-3]: " msgstr "" -#: nezha/template.sh:376 +#: nezha/template.sh:373 msgid "Please enter the correct number [1-3]" msgstr "" -#: nezha/template.sh:382 +#: nezha/template.sh:379 msgid "All options cannot be empty" msgstr "" -#: nezha/template.sh:408 +#: nezha/template.sh:405 msgid "Downloading service file" msgstr "" -#: nezha/template.sh:412 nezha/template.sh:418 +#: nezha/template.sh:409 nezha/template.sh:415 msgid "" "File failed to get, please check if the network can link ${GITHUB_RAW_URL}" msgstr "" -#: nezha/template.sh:426 +#: nezha/template.sh:423 msgid "" "Dashboard configuration modified successfully, please wait for Dashboard " "self-restart to take effect" msgstr "" -#: nezha/template.sh:436 +#: nezha/template.sh:433 msgid "> Restart and Update" msgstr "" -#: nezha/template.sh:445 +#: nezha/template.sh:442 msgid "Nezha Monitoring Restart Successful" msgstr "" -#: nezha/template.sh:446 +#: nezha/template.sh:443 msgid "Default address: domain:site_access_port" msgstr "" -#: nezha/template.sh:448 +#: nezha/template.sh:445 msgid "" "The restart failed, probably because the boot time exceeded two seconds, " "please check the log information later" msgstr "" -#: nezha/template.sh:475 +#: nezha/template.sh:472 msgid "" "Fail to obtain Dashboard version, please check if the network can link " "https://api.github.com/repos/nezhahq/nezha/releases/latest" msgstr "" -#: nezha/template.sh:478 +#: nezha/template.sh:475 msgid "The current latest version is: ${_version}" msgstr "" -#: nezha/template.sh:507 +#: nezha/template.sh:504 msgid "> View Log" msgstr "" -#: nezha/template.sh:533 +#: nezha/template.sh:530 msgid "> Uninstall" msgstr "" -#: nezha/template.sh:572 +#: nezha/template.sh:569 msgid "Nezha Monitor Management Script Usage: " msgstr "" -#: nezha/template.sh:574 +#: nezha/template.sh:571 msgid "./nezha.sh - Show Menu" msgstr "" -#: nezha/template.sh:575 +#: nezha/template.sh:572 msgid "./nezha.sh install - Install Dashboard" msgstr "" -#: nezha/template.sh:576 +#: nezha/template.sh:573 msgid "./nezha.sh modify_config - Modify Dashboard Configuration" msgstr "" -#: nezha/template.sh:577 +#: nezha/template.sh:574 msgid "./nezha.sh restart_and_update - Restart and Update the Dashboard" msgstr "" -#: nezha/template.sh:578 +#: nezha/template.sh:575 msgid "./nezha.sh show_log - View Dashboard Log" msgstr "" -#: nezha/template.sh:579 +#: nezha/template.sh:576 msgid "./nezha.sh uninstall - Uninstall Dashboard" msgstr "" -#: nezha/template.sh:584 +#: nezha/template.sh:581 msgid "${green}Nezha Monitor Management Script${plain}" msgstr "" -#: nezha/template.sh:586 +#: nezha/template.sh:583 msgid "${green}1.${plain} Install Dashboard" msgstr "" -#: nezha/template.sh:587 +#: nezha/template.sh:584 msgid "${green}2.${plain} Modify Dashboard Configuration" msgstr "" -#: nezha/template.sh:588 +#: nezha/template.sh:585 msgid "${green}3.${plain} Restart and Update Dashboard" msgstr "" -#: nezha/template.sh:589 +#: nezha/template.sh:586 msgid "${green}4.${plain} View Dashboard Log" msgstr "" -#: nezha/template.sh:590 +#: nezha/template.sh:587 msgid "${green}5.${plain} Uninstall Dashboard" msgstr "" -#: nezha/template.sh:592 +#: nezha/template.sh:589 msgid "${green}6.${plain} Update Script" msgstr "" -#: nezha/template.sh:594 +#: nezha/template.sh:591 msgid "${green}0.${plain} Exit Script" msgstr "" -#: nezha/template.sh:596 +#: nezha/template.sh:593 msgid "Please enter [0-6]: " msgstr "" -#: nezha/template.sh:620 +#: nezha/template.sh:617 msgid "Please enter the correct number [0-6]" msgstr "" diff --git a/nezha/template.sh b/nezha/template.sh index 7d1f42e..07b777c 100644 --- a/nezha/template.sh +++ b/nezha/template.sh @@ -125,29 +125,29 @@ installation_check() { if docker compose version >/dev/null 2>&1; then DOCKER_COMPOSE_COMMAND="docker compose" if sudo $DOCKER_COMPOSE_COMMAND ls | grep -qw "$NZ_DASHBOARD_PATH/docker-compose.yaml" >/dev/null 2>&1; then - NEZHA_IMAGES=$(sudo docker images --format "{{.Repository}}":"{{.Tag}}" | grep -w "nezha-dashboard") + NEZHA_IMAGES=$(sudo docker images --format "{{.Repository}}":"{{.Tag}}" | grep -w "nezhahq/nezha") if [ -n "$NEZHA_IMAGES" ]; then - echo _("Docker image with nezha-dashboard repository exists:") + echo _("Docker image with nezha repository exists:") echo "$NEZHA_IMAGES" IS_DOCKER_NEZHA=1 FRESH_INSTALL=0 return else - echo _("No Docker images with the nezha-dashboard repository were found.") + echo _("No Docker images with the nezha repository were found.") fi fi elif command -v docker-compose >/dev/null 2>&1; then DOCKER_COMPOSE_COMMAND="docker-compose" if sudo $DOCKER_COMPOSE_COMMAND -f "$NZ_DASHBOARD_PATH/docker-compose.yaml" config >/dev/null 2>&1; then - NEZHA_IMAGES=$(sudo docker images --format "{{.Repository}}":"{{.Tag}}" | grep -w "nezha-dashboard") + NEZHA_IMAGES=$(sudo docker images --format "{{.Repository}}":"{{.Tag}}" | grep -w "nezhahq/nezha") if [ -n "$NEZHA_IMAGES" ]; then - echo _("Docker image with nezha-dashboard repository exists:") + echo _("Docker image with nezha repository exists:") echo "$NEZHA_IMAGES" IS_DOCKER_NEZHA=1 FRESH_INSTALL=0 return else - echo _("No Docker images with the nezha-dashboard repository were found.") + echo _("No Docker images with the nezha repository were found.") fi fi fi diff --git a/nezha/translations/en_US/LC_MESSAGES/nezha.mo b/nezha/translations/en_US/LC_MESSAGES/nezha.mo index 9100583de6f5a27d9be7ce7aafc7f51ed42bb3ba..a3af25d64611951dced67f9fd931f7a66ba59b06 100644 GIT binary patch delta 921 zcmYMyPe>GT6u|K}GNWm$+iGd6#%_q3+OVse%K8ss?Vwvhpo@53^B}koQA7*FQU@AKL*5+ z85X{BqZwnBo)f;0(B}Rtyo5h6g9msSN29BL+e*lmc^u;~i(QJ#w6UDSY|Vi&Gr9QUvV8*9AhQ>cN?Vhk5h z16s#6+;tdqGN`6LLpXxN_!#xYUoe4(NYc{5Ih11(xg{y2>N1HWC0XQ@J@EiD_zbnw`~JL&C^O&@GrT z!*)NIy+()o%S;6Y0OGG;peb>5*PeOU? Gbm;`;w`d#y delta 961 zcmZY7K}b_^9KiA4lQ**Y(ycA6w6+MXtjE;3#*%d4t(9~T9fb#FP@yu@i`L*V578xp z-a(2eB&b7&l#!RwExP2zQ$f%nPebw2sR-8h$9o6CvF-Ewzu)`6_y7O?zv{sDz?x+^ z{UTxqMOtwRkK+>N@ENw_PdtWyu>(U*B4xDk8h*g2=J6c1SR!XJjaj^nnt$oL?)$|O zNA8gL!G%s7KH_=L_bJ+3|A?n>8^_RS7CD1?)bRrh;TB%UUl_+ki%2)##3DXK-M|hW z#m0~$5+-P8_9)s|!e!K*)G=icbJKao6U>U?Bh&@I#Xj7`9;{;*_C&n-N{eco=UWDH%tqE;GocWDz+fd5pKvMLohj zY{VevT)+tGhMYx$69lWMrLJN>){w89Zu5E~g*nC}s1JOBJX1DMOS*|=tfBVAG>xPS z+(515SJa;Pjah8trQ{vSdx6aQE~ECu3Tlb#zMUt%aSnB%_fdP|HICsY)KW)TosKUf zrzcNPd*T(waR>DXELL6A+NKF~2k-df_~bKcPkh5stYHZUd7JK}>SoMzI76hL27X#_ zam!}Hh`H-#+7P#9=8TJODllx=?ouFTT&+A0yf=e(VRGT_RB>{?P}yz0)Uba%XZ Restart and Update" msgstr "> Restart and Update" -#: nezha/template.sh:445 +#: nezha/template.sh:442 msgid "Nezha Monitoring Restart Successful" msgstr "Nezha Monitoring Restart Successful" -#: nezha/template.sh:446 +#: nezha/template.sh:443 msgid "Default address: domain:site_access_port" msgstr "Default address: domain:site_access_port" -#: nezha/template.sh:448 +#: nezha/template.sh:445 msgid "" "The restart failed, probably because the boot time exceeded two seconds, " "please check the log information later" @@ -231,90 +231,90 @@ msgstr "" "The restart failed, probably because the boot time exceeded two seconds, " "please check the log information later" +#: nezha/template.sh:472 +msgid "" +"Fail to obtain Dashboard version, please check if the network can link " +"https://api.github.com/repos/nezhahq/nezha/releases/latest" +msgstr "" +"Fail to obtain Dashboard version, please check if the network can link " +"https://api.github.com/repos/nezhahq/nezha/releases/latest" + #: nezha/template.sh:475 -msgid "" -"Fail to obtain Dashboard version, please check if the network can link " -"https://api.github.com/repos/nezhahq/nezha/releases/latest" -msgstr "" -"Fail to obtain Dashboard version, please check if the network can link " -"https://api.github.com/repos/nezhahq/nezha/releases/latest" - -#: nezha/template.sh:478 msgid "The current latest version is: ${_version}" msgstr "The current latest version is: ${_version}" -#: nezha/template.sh:507 +#: nezha/template.sh:504 msgid "> View Log" msgstr "> View Log" -#: nezha/template.sh:533 +#: nezha/template.sh:530 msgid "> Uninstall" msgstr "> Uninstall" -#: nezha/template.sh:572 +#: nezha/template.sh:569 msgid "Nezha Monitor Management Script Usage: " msgstr "Nezha Monitor Management Script Usage: " -#: nezha/template.sh:574 +#: nezha/template.sh:571 msgid "./nezha.sh - Show Menu" msgstr "./nezha.sh - Show Menu" -#: nezha/template.sh:575 +#: nezha/template.sh:572 msgid "./nezha.sh install - Install Dashboard" msgstr "./nezha.sh install - Install Dashboard" -#: nezha/template.sh:576 +#: nezha/template.sh:573 msgid "./nezha.sh modify_config - Modify Dashboard Configuration" msgstr "./nezha.sh modify_config - Modify Dashboard Configuration" -#: nezha/template.sh:577 +#: nezha/template.sh:574 msgid "./nezha.sh restart_and_update - Restart and Update the Dashboard" msgstr "./nezha.sh restart_and_update - Restart and Update the Dashboard" -#: nezha/template.sh:578 +#: nezha/template.sh:575 msgid "./nezha.sh show_log - View Dashboard Log" msgstr "./nezha.sh show_log - View Dashboard Log" -#: nezha/template.sh:579 +#: nezha/template.sh:576 msgid "./nezha.sh uninstall - Uninstall Dashboard" msgstr "./nezha.sh uninstall - Uninstall Dashboard" -#: nezha/template.sh:584 +#: nezha/template.sh:581 msgid "${green}Nezha Monitor Management Script${plain}" msgstr "${green}Nezha Monitor Management Script${plain}" -#: nezha/template.sh:586 +#: nezha/template.sh:583 msgid "${green}1.${plain} Install Dashboard" msgstr "${green}1.${plain} Install Dashboard" -#: nezha/template.sh:587 +#: nezha/template.sh:584 msgid "${green}2.${plain} Modify Dashboard Configuration" msgstr "${green}2.${plain} Modify Dashboard Configuration" -#: nezha/template.sh:588 +#: nezha/template.sh:585 msgid "${green}3.${plain} Restart and Update Dashboard" msgstr "${green}3.${plain} Restart and Update Dashboard" -#: nezha/template.sh:589 +#: nezha/template.sh:586 msgid "${green}4.${plain} View Dashboard Log" msgstr "${green}4.${plain} View Dashboard Log" -#: nezha/template.sh:590 +#: nezha/template.sh:587 msgid "${green}5.${plain} Uninstall Dashboard" msgstr "${green}5.${plain} Uninstall Dashboard" -#: nezha/template.sh:592 +#: nezha/template.sh:589 msgid "${green}6.${plain} Update Script" msgstr "${green}6.${plain} Update Script" -#: nezha/template.sh:594 +#: nezha/template.sh:591 msgid "${green}0.${plain} Exit Script" msgstr "${green}0.${plain} Exit Script" -#: nezha/template.sh:596 +#: nezha/template.sh:593 msgid "Please enter [0-6]: " msgstr "Please enter [0-6]: " -#: nezha/template.sh:620 +#: nezha/template.sh:617 msgid "Please enter the correct number [0-6]" msgstr "Please enter the correct number [0-6]" diff --git a/nezha/translations/zh_CN/LC_MESSAGES/nezha.mo b/nezha/translations/zh_CN/LC_MESSAGES/nezha.mo index 53637adbbc20d51934523697810145a4076f0e2e..0376bb14deccc1dc4cf1f6e7f4d1d1eb8bb662de 100644 GIT binary patch delta 917 zcmXZbOGs2v7{KxGPIof&+GxJB$&sFp4pUB(V-E-?4IB}JDMz72n{gv5M3D5jC@w~5 zcWKcg!bP-jquq57EmA=$C=i)d5aEMLu%c!EFV8TX-}%mK&iT%nt<>Apf@8T+5s8(G z)M5_naU3&Pz()LxHMoOEaDSP|6duD~e1X;4kEbx`(1$TRkJnNA3&v;0SB|(cLdOyf zCoo>V=MCe1jL|-aVf=tM@jEu-)q{I+9xI4nV;{c92sVa9qIe0%aRl`MYj_BMg|&`ETd6~P4R3A3o}_pk+@n|Q^zgAv;6szgp>3Uvdwu^k_| zRN_DiR)roZBEb4|F|9KiA4*lfzS>2B7zW#vkLv}{=Xv+QaX;--NLd00{if)ybnVk1dd3x*B4 zMWNH7pu1p)l%Z2}2@N_1-NX*nr49OXNLDZP{oy;N_!qgSd#?Lw=(!xVu5*Al73MUF^pN)Pl;WC%K85 z*UVx)coymMWQK;`;1L%sWC6$V4IV{@S!&9d!{fx$$O7^dM{x;tzD3nz*nk=rP&f7f zb>4g94;+(DD(4l~#2d(Clah&_-~jO==I|Hl0t0@xosM Restart and Update" msgstr "> 重启并更新" -#: nezha/template.sh:445 +#: nezha/template.sh:442 msgid "Nezha Monitoring Restart Successful" msgstr "哪吒监控 重启成功" -#: nezha/template.sh:446 +#: nezha/template.sh:443 msgid "Default address: domain:site_access_port" msgstr "默认地址:域名:站点访问端口" -#: nezha/template.sh:448 +#: nezha/template.sh:445 msgid "" "The restart failed, probably because the boot time exceeded two seconds, " "please check the log information later" msgstr "重启失败,可能是因为启动时间超过了两秒,请稍后查看日志信息" -#: nezha/template.sh:475 +#: nezha/template.sh:472 msgid "" "Fail to obtain Dashboard version, please check if the network can link " "https://api.github.com/repos/nezhahq/nezha/releases/latest" @@ -223,83 +223,83 @@ msgstr "" "获取 Dashboard 版本号失败,请检查本机能否链接 https://api.github.com/repos/" "nezhahq/nezha/releases/latest" -#: nezha/template.sh:478 +#: nezha/template.sh:475 msgid "The current latest version is: ${_version}" msgstr "当前最新版本为: ${_version}" -#: nezha/template.sh:507 +#: nezha/template.sh:504 msgid "> View Log" msgstr "> 获取日志" -#: nezha/template.sh:533 +#: nezha/template.sh:530 msgid "> Uninstall" msgstr "> 卸载" -#: nezha/template.sh:572 +#: nezha/template.sh:569 msgid "Nezha Monitor Management Script Usage: " msgstr "哪吒监控 管理脚本使用方法: " -#: nezha/template.sh:574 +#: nezha/template.sh:571 msgid "./nezha.sh - Show Menu" msgstr "./nezha.sh - 显示管理菜单" -#: nezha/template.sh:575 +#: nezha/template.sh:572 msgid "./nezha.sh install - Install Dashboard" msgstr "./nezha.sh install - 安装面板端" -#: nezha/template.sh:576 +#: nezha/template.sh:573 msgid "./nezha.sh modify_config - Modify Dashboard Configuration" msgstr "./nezha.sh modify_config - 修改面板配置" -#: nezha/template.sh:577 +#: nezha/template.sh:574 msgid "./nezha.sh restart_and_update - Restart and Update the Dashboard" msgstr "./nezha.sh restart_and_update - 重启并更新面板" -#: nezha/template.sh:578 +#: nezha/template.sh:575 msgid "./nezha.sh show_log - View Dashboard Log" msgstr "./nezha.sh show_log - 查看面板日志" -#: nezha/template.sh:579 +#: nezha/template.sh:576 msgid "./nezha.sh uninstall - Uninstall Dashboard" msgstr "./nezha.sh uninstall - 卸载管理面板" -#: nezha/template.sh:584 +#: nezha/template.sh:581 msgid "${green}Nezha Monitor Management Script${plain}" msgstr "${green}哪吒监控管理脚本${plain}" -#: nezha/template.sh:586 +#: nezha/template.sh:583 msgid "${green}1.${plain} Install Dashboard" msgstr "${green}1.${plain} 安装面板端" -#: nezha/template.sh:587 +#: nezha/template.sh:584 msgid "${green}2.${plain} Modify Dashboard Configuration" msgstr "${green}2.${plain} 修改面板配置" -#: nezha/template.sh:588 +#: nezha/template.sh:585 msgid "${green}3.${plain} Restart and Update Dashboard" msgstr "${green}3.${plain} 重启并更新面板" -#: nezha/template.sh:589 +#: nezha/template.sh:586 msgid "${green}4.${plain} View Dashboard Log" msgstr "${green}4.${plain} 查看面板日志" -#: nezha/template.sh:590 +#: nezha/template.sh:587 msgid "${green}5.${plain} Uninstall Dashboard" msgstr "${green}5.${plain} 卸载管理面板" -#: nezha/template.sh:592 +#: nezha/template.sh:589 msgid "${green}6.${plain} Update Script" msgstr "${green}6.${plain} 更新脚本" -#: nezha/template.sh:594 +#: nezha/template.sh:591 msgid "${green}0.${plain} Exit Script" msgstr "${green}0.${plain} 退出脚本" -#: nezha/template.sh:596 +#: nezha/template.sh:593 msgid "Please enter [0-6]: " msgstr "请输入选择 [0-6]: " -#: nezha/template.sh:620 +#: nezha/template.sh:617 msgid "Please enter the correct number [0-6]" msgstr "请输入正确的数字 [0-6]"