Skip to content

Commit c597102

Browse files
committed
telegraf: set home variable in uci-defaults script
avoid a non-critical error caused by getent not being installed Signed-off-by: Niklas Thorild <niklas@thorild.se>
1 parent 862221c commit c597102

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/telegraf/files/etc/uci-defaults/90-telegraf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
[ -f /etc/telegraf.conf ] && exit 0
55

6+
export HOME=/root
7+
68
/usr/bin/telegraf config create > /etc/telegraf.conf
79

810
exit 0

0 commit comments

Comments
 (0)