node_exporter: Force path to textfile collectors
Cron ismissing sbin directories by default and /usr/local on OpenBSD so force them into path.
This commit is contained in:
parent
cdd7e82b6a
commit
5a8fca650c
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@ set -eu
|
|||
|
||||
umask 022
|
||||
|
||||
PATH="/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin"
|
||||
|
||||
if [ "$(uname -s)" = "OpenBSD" ]; then
|
||||
OUTDIR="/var/db/node-exporter"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue