🔨 更新安装脚本

This commit is contained in:
naiba 2021-05-26 23:05:02 +08:00
parent b4d3e5aade
commit 22f672dccb
2 changed files with 19 additions and 18 deletions

View File

@ -1,7 +1,7 @@
<div align="center" style="background-color: white">
<img width="500" style="max-width:100%" src="https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.png" title="哪吒监控">
<br><br>
<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Dashboard%20image?label=Dash%20v0.7.2&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&label=Agent&style=for-the-badge&logo=github">&nbsp;<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Agent%20release?label=Agent%20CI&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/badge/Installer-v0.6.0-brightgreen?style=for-the-badge&logo=linux">
<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Dashboard%20image?label=Dash%20v0.7.2&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&label=Agent&style=for-the-badge&logo=github">&nbsp;<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Agent%20release?label=Agent%20CI&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/badge/Installer-v0.6.1-brightgreen?style=for-the-badge&logo=linux">
<br>
<p>:trollface: 哪吒监控 一站式轻监控轻运维系统。支持系统状态、HTTP(SSL 证书变更、即将到期、到期)、TCP、Ping 监控报警,命令批量执行和计划任务。</p>
</div>

View File

@ -11,7 +11,7 @@ NZ_BASE_PATH="/opt/nezha"
NZ_DASHBOARD_PATH="${NZ_BASE_PATH}/dashboard"
NZ_AGENT_PATH="${NZ_BASE_PATH}/agent"
NZ_AGENT_SERVICE="/etc/systemd/system/nezha-agent.service"
NZ_VERSION="v0.6.0"
NZ_VERSION="v0.6.1"
red='\033[0;31m'
green='\033[0;32m'
@ -423,21 +423,21 @@ clean_all() {
show_usage() {
echo "哪吒监控 管理脚本使用方法: "
echo "--------------------------------------------------------"
echo "/opt/nezha/nezha.sh - 显示管理菜单"
echo "/opt/nezha/nezha.sh install_dashboard - 安装面板端"
echo "/opt/nezha/nezha.sh modify_dashboard_config - 修改面板配置"
echo "/opt/nezha/nezha.sh start_dashboard - 启动面板"
echo "/opt/nezha/nezha.sh stop_dashboard - 停止面板"
echo "/opt/nezha/nezha.sh restart_and_update - 重启并更新面板"
echo "/opt/nezha/nezha.sh show_dashboard_log - 查看面板日志"
echo "/opt/nezha/nezha.sh uninstall_dashboard - 卸载管理面板"
echo "./nezha.sh - 显示管理菜单"
echo "./nezha.sh install_dashboard - 安装面板端"
echo "./nezha.sh modify_dashboard_config - 修改面板配置"
echo "./nezha.sh start_dashboard - 启动面板"
echo "./nezha.sh stop_dashboard - 停止面板"
echo "./nezha.sh restart_and_update - 重启并更新面板"
echo "./nezha.sh show_dashboard_log - 查看面板日志"
echo "./nezha.sh uninstall_dashboard - 卸载管理面板"
echo "--------------------------------------------------------"
echo "/opt/nezha/nezha.sh install_agent - 安装监控Agent"
echo "/opt/nezha/nezha.sh modify_agent_config - 修改Agent配置"
echo "/opt/nezha/nezha.sh show_agent_log - 查看Agent日志"
echo "/opt/nezha/nezha.sh uninstall_agent - 卸载Agen"
echo "/opt/nezha/nezha.sh restart_agent - 重启Agen"
echo "/opt/nezha/nezha.sh update_script - 更新脚本"
echo "./nezha.sh install_agent - 安装监控Agent"
echo "./nezha.sh modify_agent_config - 修改Agent配置"
echo "./nezha.sh show_agent_log - 查看Agent日志"
echo "./nezha.sh uninstall_agent - 卸载Agen"
echo "./nezha.sh restart_agent - 重启Agen"
echo "./nezha.sh update_script - 更新脚本"
echo "--------------------------------------------------------"
}
@ -459,8 +459,9 @@ show_menu() {
${green}11.${plain} 卸载Agent
${green}12.${plain} 重启Agent
————————————————-
${green}0.${plain} 退出脚本
${green}13.${plain} 更新脚本
————————————————-
${green}0.${plain} 退出脚本
"
echo && read -p "请输入选择 [0-13]: " num
@ -508,7 +509,7 @@ show_menu() {
update_script
;;
*)
echo -e "${red}请输入正确的数字 [0-12]${plain}"
echo -e "${red}请输入正确的数字 [0-13]${plain}"
;;
esac
}