diff --git a/ct/telegraf.sh b/ct/telegraf.sh index 2b4894bb8..41ef81d54 100644 --- a/ct/telegraf.sh +++ b/ct/telegraf.sh @@ -34,7 +34,7 @@ function update_script() { msg_info "Updating Telegraf" $STD apt update - $STD apt upgrade telegraf -y + $STD apt upgrade -y telegraf msg_ok "Updated Telegraf" msg_info "Starting Service" diff --git a/install/telegraf-install.sh b/install/telegraf-install.sh index f8260533b..4fec28cc8 100644 --- a/install/telegraf-install.sh +++ b/install/telegraf-install.sh @@ -13,27 +13,17 @@ setting_up_container network_check update_os -msg_info "Adding Telegraf key and repository" -curl -fsSL -O https://repos.influxdata.com/influxdata-archive.key -gpg --show-keys --with-fingerprint --with-colons ./influxdata-archive.key 2>&1 | - grep -q '^fpr:\+24C975CBA61A024EE1B631787C3D57159FC2F927:$' && - cat influxdata-archive.key | - gpg --dearmor | - tee /etc/apt/keyrings/influxdata-archive.gpg >/dev/null -cat </dev/null -Types: deb -URIs: https://repos.influxdata.com/debian -Suites: stable -Components: main -Signed-By: /etc/apt/keyrings/influxdata-archive.gpg -EOF -msg_ok "Added Telegraf Repository" +msg_info "Setting up Telegraf repository" +setup_deb822_repo \ + "telegraf" \ + "https://repos.influxdata.com/influxdata-archive.key" \ + "https://repos.influxdata.com/debian" \ + "stable" +msg_ok "Setup Telegraf Repository" -msg_info "Installing Telegraf" -$STD apt update -$STD apt install telegraf -y -rm /influxdata-archive.key -msg_ok "Installed Telegraf" +msg_info "Setting up Telegraf" +$STD apt install -y telegraf +msg_ok "Setup Telegraf" motd_ssh customize