Many fixes about variabilisation of the telegraf config for docker

This commit is contained in:
2023-06-25 00:27:07 +02:00
parent 66971eafdb
commit 06cd7537ac
4 changed files with 53 additions and 22 deletions

View File

@@ -22,5 +22,5 @@ else
# Allow telegraf to send ICMP packets and bind to privileged ports
setcap cap_net_raw,cap_net_bind_service+ep /usr/bin/telegraf || echo "Failed to set additional capabilities on /usr/bin/telegraf"
exec setpriv --reuid telegraf --init-groups "$@"
exec setpriv --reuid telegraf --init-groups telegraf "$@"
fi