mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-29 13:36:00 +00:00
Fixes (#10056)
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user