mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2026-01-04 03:33:47 +01:00
Update uptimekuma - simplify variable handling
This commit is contained in:
@@ -15,8 +15,8 @@ rcvar=uptimekuma_enable
|
||||
load_rc_config $name
|
||||
|
||||
: ${uptimekuma_enable:="NO"}
|
||||
: ${uptimekuma_datadir:="--data-dir=/mnt/data"}
|
||||
: ${uptimekuma_host:="--host=0.0.0.0"}
|
||||
: ${uptimekuma_datadir:="/mnt/data"}
|
||||
: ${uptimekuma_host:="0.0.0.0"}
|
||||
: ${uptimekuma_chdir:="/usr/local/uptime-kuma"}
|
||||
: ${uptimekuma_user:="uptimekuma"}
|
||||
: ${uptimekuma_group:="uptimekuma"}
|
||||
@@ -25,7 +25,7 @@ pidfile="/var/run/${name}/${name}.pid"
|
||||
uptimekuma_env="PLAYWRIGHT_BROWSERS_PATH=/nonexistent"
|
||||
node="/usr/local/bin/node"
|
||||
command=/usr/sbin/daemon
|
||||
command_args="-P ${pidfile} -H -o /var/log/${name}/${name}.log ${node} server/server.js ${uptimekuma_host} ${uptimekuma_datadir}"
|
||||
command_args="-P ${pidfile} -H -o /var/log/${name}/${name}.log ${node} server/server.js --host=${uptimekuma_host} --data-dir=${uptimekuma_datadir}"
|
||||
|
||||
start_precmd=uptimekuma_startprecmd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user