Simplify Telegraf installation script

This commit is contained in:
Tobias 2025-09-11 15:40:00 +02:00 committed by GitHub
parent 3e0ec08c74
commit c14aa244e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,16 +29,11 @@ apt-get update
apt-get install telegraf
msg_ok "Installed Telegraf"
msg_info "Creating default config"
telegraf config > telegraf.conf
msg_ok "Created default config"
systemctl enable -q --now telegraf
motd_ssh
customize
msg_info "Cleaning up"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
rm /influxdata-archive.key
msg_ok "Cleaned"