fix installer bugs & improve (#341)

* fix installer bugs && improve

* Update install_en.sh
This commit is contained in:
UUBulb
2024-03-30 11:08:29 +08:00
committed by GitHub
parent 140f9809a0
commit 0373d03fb2
4 changed files with 382 additions and 910 deletions

12
script/nezha-dashboard Normal file → Executable file
View File

@@ -1,4 +1,8 @@
#!/sbin/openrc-run
supervisor=supervise-daemon
name=nezha-dashboard
output_log=/var/log/${name}.log
error_log=/var/log/${name}.err
pidfile="/run/${RC_SVCNAME}.pid"
command="/opt/nezha/dashboard/app"
command_args=""
@@ -6,11 +10,9 @@ command_background=true
directory="/opt/nezha/dashboard"
depend() {
need net
need net
}
reload() {
ebegin "Reloading ${RC_SVCNAME}"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
start_pre() {
checkpath -f -m 0644 -o root:root "/var/log/${name}.log"
}