fix: docker image detection (#29)

This commit is contained in:
UUBulb 2024-12-03 15:09:49 +08:00 committed by GitHub
parent c6c7dd5171
commit 3d31005c61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 147 additions and 147 deletions

View File

@ -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

View File

@ -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

View File

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""

View File

@ -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

View File

@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-02 13:39+0800\n"
"PO-Revision-Date: 2024-12-02 13:39+0800\n"
"POT-Creation-Date: 2024-12-03 13:42+0800\n"
"PO-Revision-Date: 2024-12-03 13:42+0800\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: en_US\n"
@ -36,12 +36,12 @@ msgid "Unknown architecture: $uname"
msgstr "Unknown architecture: $uname"
#: nezha/template.sh:130 nezha/template.sh:144
msgid "Docker image with nezha-dashboard repository exists:"
msgstr "Docker image with nezha-dashboard repository exists:"
msgid "Docker image with nezha repository exists:"
msgstr "Docker image with nezha repository exists:"
#: nezha/template.sh:136 nezha/template.sh:150
msgid "No Docker images with the nezha-dashboard repository were found."
msgstr "No Docker images with the nezha-dashboard repository were found."
msgid "No Docker images with the nezha repository were found."
msgstr "No Docker images with the nezha repository were found."
#: nezha/template.sh:163
msgid "Select your installation method:"
@ -157,15 +157,15 @@ msgstr ""
"Please install docker-compose manually. https://docs.docker.com/compose/"
"install/linux/"
#: nezha/template.sh:334
#: nezha/template.sh:333
msgid "Please enter the site title: "
msgstr "Please enter the site title: "
#: nezha/template.sh:336
#: nezha/template.sh:335
msgid "Please enter the exposed port: (default 8008)"
msgstr "Please enter the exposed port: (default 8008)"
#: nezha/template.sh:338
#: nezha/template.sh:337
msgid ""
"Please specify the preset nezha-agent host in install commands: (e.g. "
"example.com:443)"
@ -173,37 +173,37 @@ msgstr ""
"Please specify the preset nezha-agent host in install commands: (e.g. "
"example.com:443)"
#: nezha/template.sh:340
#: nezha/template.sh:339
msgid "Do you prefer to connect Agent via TLS? [y/N]"
msgstr "Do you prefer to connect Agent via TLS? [y/N]"
#: nezha/template.sh:355
#: nezha/template.sh:352
msgid "Please specify the backend locale"
msgstr "Please specify the backend locale"
#: nezha/template.sh:360
#: nezha/template.sh:357
msgid "Please enter [1-3]: "
msgstr "Please enter [1-3]: "
#: nezha/template.sh:376
#: nezha/template.sh:373
msgid "Please enter the correct number [1-3]"
msgstr "Please enter the correct number [1-3]"
#: nezha/template.sh:382
#: nezha/template.sh:379
msgid "All options cannot be empty"
msgstr "All options cannot be empty"
#: nezha/template.sh:408
#: nezha/template.sh:405
msgid "Downloading service file"
msgstr "Downloading service file"
#: 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 ""
"File failed to get, please check if the network can link ${GITHUB_RAW_URL}"
#: nezha/template.sh:426
#: nezha/template.sh:423
msgid ""
"Dashboard configuration modified successfully, please wait for Dashboard "
"self-restart to take effect"
@ -211,19 +211,19 @@ msgstr ""
"Dashboard configuration modified successfully, please wait for Dashboard "
"self-restart to take effect"
#: nezha/template.sh:436
#: nezha/template.sh:433
msgid "> 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]"

View File

@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-02 13:39+0800\n"
"PO-Revision-Date: 2024-12-02 13:41+0800\n"
"POT-Creation-Date: 2024-12-03 13:42+0800\n"
"PO-Revision-Date: 2024-12-03 13:45+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: zh_CN\n"
@ -36,12 +36,12 @@ msgid "Unknown architecture: $uname"
msgstr "未知架构:$uname"
#: nezha/template.sh:130 nezha/template.sh:144
msgid "Docker image with nezha-dashboard repository exists:"
msgstr "存在带有 nezha-dashboard 仓库的 Docker 镜像:"
msgid "Docker image with nezha repository exists:"
msgstr "存在带有 nezha 仓库的 Docker 镜像:"
#: nezha/template.sh:136 nezha/template.sh:150
msgid "No Docker images with the nezha-dashboard repository were found."
msgstr "未找到带有 nezha-dashboard 仓库的 Docker 镜像。"
msgid "No Docker images with the nezha repository were found."
msgstr "未找到带有 nezha 仓库的 Docker 镜像。"
#: nezha/template.sh:163
msgid "Select your installation method:"
@ -148,74 +148,74 @@ msgid ""
msgstr ""
"请手动安装 docker-compose。 https://docs.docker.com/compose/install/linux/"
#: 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 "请输入暴露端口: (默认 8008)"
#: 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-agent 连接地址 (例如 example.com:443"
#: nezha/template.sh:340
#: nezha/template.sh:339
msgid "Do you prefer to connect Agent via TLS? [y/N]"
msgstr "是否希望通过 TLS 连接 Agent影响安装命令[y/N]"
#: 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 "请输入选项 [1-3]"
#: nezha/template.sh:376
#: nezha/template.sh:373
msgid "Please enter the correct number [1-3]"
msgstr "请输入正确的选项 [1-3]"
#: 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 "文件下载失败,请检查本机能否连接 ${GITHUB_RAW_URL}"
#: nezha/template.sh:426
#: nezha/template.sh:423
msgid ""
"Dashboard configuration modified successfully, please wait for Dashboard "
"self-restart to take effect"
msgstr "Dashboard 配置 修改成功,请稍等 Dashboard 重启生效"
#: 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"
@ -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]"