This commit is contained in:
Slaviša Arežina
2025-12-17 16:34:53 +01:00
committed by GitHub
parent cb13f5de3c
commit acdb3b5908
2 changed files with 11 additions and 21 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ function update_script() {
msg_info "Updating Telegraf" msg_info "Updating Telegraf"
$STD apt update $STD apt update
$STD apt upgrade telegraf -y $STD apt upgrade -y telegraf
msg_ok "Updated Telegraf" msg_ok "Updated Telegraf"
msg_info "Starting Service" msg_info "Starting Service"
+10 -20
View File
@@ -13,27 +13,17 @@ setting_up_container
network_check network_check
update_os update_os
msg_info "Adding Telegraf key and repository" msg_info "Setting up Telegraf repository"
curl -fsSL -O https://repos.influxdata.com/influxdata-archive.key setup_deb822_repo \
gpg --show-keys --with-fingerprint --with-colons ./influxdata-archive.key 2>&1 | "telegraf" \
grep -q '^fpr:\+24C975CBA61A024EE1B631787C3D57159FC2F927:$' && "https://repos.influxdata.com/influxdata-archive.key" \
cat influxdata-archive.key | "https://repos.influxdata.com/debian" \
gpg --dearmor | "stable"
tee /etc/apt/keyrings/influxdata-archive.gpg >/dev/null msg_ok "Setup Telegraf Repository"
cat <<EOF | sudo tee /etc/apt/sources.list.d/influxdata.sources >/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 "Installing Telegraf" msg_info "Setting up Telegraf"
$STD apt update $STD apt install -y telegraf
$STD apt install telegraf -y msg_ok "Setup Telegraf"
rm /influxdata-archive.key
msg_ok "Installed Telegraf"
motd_ssh motd_ssh
customize customize