File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 4
4
<br >
5
5
<small ><i >LOGO designed by <a href =" https://xio.ng " target =" _blank " >熊大</a > .</i ></small >
6
6
<br ><br >
7
- <img alt =" GitHub release (with filter) " src =" https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&style=for-the-badge&logo=github&label=Dashboard " >  ; <img src =" https://img.shields.io/github/v/release/nezhahq/agent?color=brightgreen&label=Agent&style=for-the-badge&logo=github " >  ; <img src =" https://img.shields.io/github/actions/workflow/status/nezhahq/agent/agent.yml?label=Agent%20CI&logo=github&style=for-the-badge " >  ; <img src =" https://img.shields.io/badge/Installer-v0.19.0 -brightgreen?style=for-the-badge&logo=linux " >
7
+ <img alt =" GitHub release (with filter) " src =" https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&style=for-the-badge&logo=github&label=Dashboard " >  ; <img src =" https://img.shields.io/github/v/release/nezhahq/agent?color=brightgreen&label=Agent&style=for-the-badge&logo=github " >  ; <img src =" https://img.shields.io/github/actions/workflow/status/nezhahq/agent/agent.yml?label=Agent%20CI&logo=github&style=for-the-badge " >  ; <img src =" https://img.shields.io/badge/Installer-v0.19.1 -brightgreen?style=for-the-badge&logo=linux " >
8
8
<br >
9
9
<br >
10
10
<p >:trollface: <b >Nezha Monitoring: Self-hostable, lightweight, servers and websites monitoring and O&M tool.</b ></p >
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ NZ_DASHBOARD_PATH="${NZ_BASE_PATH}/dashboard"
12
12
NZ_AGENT_PATH=" ${NZ_BASE_PATH} /agent"
13
13
NZ_DASHBOARD_SERVICE=" /etc/systemd/system/nezha-dashboard.service"
14
14
NZ_DASHBOARD_SERVICERC=" /etc/init.d/nezha-dashboard"
15
- NZ_VERSION=" v0.19.0 "
15
+ NZ_VERSION=" v0.19.1 "
16
16
17
17
red=' \033[0;31m'
18
18
green=' \033[0;32m'
@@ -65,6 +65,8 @@ geo_check() {
65
65
}
66
66
67
67
pre_check () {
68
+ umask 077
69
+
68
70
# # os_arch
69
71
if uname -m | grep -q ' x86_64' ; then
70
72
os_arch=" amd64"
@@ -168,6 +170,9 @@ installation_check() {
168
170
echo " 未找到带有 nezha-dashboard 仓库的 Docker 镜像。"
169
171
fi
170
172
fi
173
+ else
174
+ err " 请手动安装 docker-compose。https://docs.docker.com/compose/install/linux/"
175
+ exit 1
171
176
fi
172
177
173
178
if [ -f " $NZ_DASHBOARD_PATH /app" ]; then
@@ -288,8 +293,6 @@ install_dashboard() {
288
293
esac
289
294
fi
290
295
291
- sudo chmod -R 700 $NZ_DASHBOARD_PATH
292
-
293
296
if [ " $IS_DOCKER_NEZHA " = 1 ]; then
294
297
install_dashboard_docker
295
298
elif [ " $IS_DOCKER_NEZHA " = 0 ]; then
@@ -375,7 +378,6 @@ install_agent() {
375
378
376
379
# 哪吒监控文件夹
377
380
sudo mkdir -p $NZ_AGENT_PATH
378
- sudo chmod -R 700 $NZ_AGENT_PATH
379
381
380
382
echo " 正在下载监控端"
381
383
if [ -z " $CN " ]; then
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ NZ_DASHBOARD_PATH="${NZ_BASE_PATH}/dashboard"
12
12
NZ_AGENT_PATH=" ${NZ_BASE_PATH} /agent"
13
13
NZ_DASHBOARD_SERVICE=" /etc/systemd/system/nezha-dashboard.service"
14
14
NZ_DASHBOARD_SERVICERC=" /etc/init.d/nezha-dashboard"
15
- NZ_VERSION=" v0.19.0 "
15
+ NZ_VERSION=" v0.19.1 "
16
16
17
17
red=' \033[0;31m'
18
18
green=' \033[0;32m'
@@ -65,6 +65,8 @@ geo_check() {
65
65
}
66
66
67
67
pre_check () {
68
+ umask 077
69
+
68
70
# # os_arch
69
71
if uname -m | grep -q ' x86_64' ; then
70
72
os_arch=" amd64"
@@ -167,6 +169,9 @@ installation_check() {
167
169
echo " No Docker images with the nezha-dashboard repository were found."
168
170
fi
169
171
fi
172
+ else
173
+ err " Please install docker-compose manually. https://docs.docker.com/compose/install/linux/"
174
+ exit 1
170
175
fi
171
176
172
177
if [ -f " $NZ_DASHBOARD_PATH /app" ]; then
@@ -287,8 +292,6 @@ install_dashboard() {
287
292
esac
288
293
fi
289
294
290
- sudo chmod -R 700 $NZ_DASHBOARD_PATH
291
-
292
295
if [ " $IS_DOCKER_NEZHA " = 1 ]; then
293
296
install_dashboard_docker
294
297
elif [ " $IS_DOCKER_NEZHA " = 0 ]; then
@@ -374,7 +377,6 @@ install_agent() {
374
377
375
378
# Nezha Monitoring Folder
376
379
sudo mkdir -p $NZ_AGENT_PATH
377
- sudo chmod -R 700 $NZ_AGENT_PATH
378
380
379
381
echo " Downloading Agent"
380
382
wget -t 2 -T 60 -O nezha-agent_linux_${os_arch} .zip https://${GITHUB_URL} /nezhahq/agent/releases/download/${version} /nezha-agent_linux_${os_arch} .zip > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments