🔨 优化一键脚本
This commit is contained in:
parent
b5bb569bb3
commit
a6b4b4759f
@ -1,6 +1,6 @@
|
||||
# 哪吒面板
|
||||
|
||||
    
|
||||
    
|
||||
|
||||
系统状态监控报警、API(SSL证书变更、即将到期、到期)/TCP端口存活/PING 监控、计划任务(可以定时在Agent上执行命令,备份、重启、What ever you want)、极省资源,64M 服务器也能装 agent。
|
||||
|
||||
@ -20,14 +20,14 @@
|
||||
|
||||
```shell
|
||||
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh
|
||||
sudo ./nezha.sh
|
||||
./nezha.sh
|
||||
```
|
||||
|
||||
- 国内加速:(有缓存可能不是最新的,非作者维护)
|
||||
|
||||
```shell
|
||||
curl -L https://raw.sevencdn.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh
|
||||
sudo ./nezha.sh
|
||||
CN=true ./nezha.sh
|
||||
```
|
||||
|
||||
## 功能说明
|
||||
|
@ -10,7 +10,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.4.2"
|
||||
NZ_VERSION="v0.4.3"
|
||||
GITHUB_RAW_URL="raw.githubusercontent.com"
|
||||
GITHUB_URL="github.com"
|
||||
|
||||
@ -85,8 +85,7 @@ pre_check() {
|
||||
os_arch="arm"
|
||||
fi
|
||||
|
||||
## server location
|
||||
if curl -s api.myip.la/json | grep -q 'China'; then
|
||||
if [[ -z "${CN}" ]]; then
|
||||
GITHUB_RAW_URL="raw.sevencdn.com"
|
||||
GITHUB_URL="hub.fastgit.org"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user