Update telegraf.sh

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

View File

@ -28,20 +28,19 @@ function update_script() {
exit
fi
if check_for_gh_release "telegraf" "influxdb/telegraf"; then
msg_info "Stopping $APP"
systemctl stop telegraf
msg_ok "Stopped $APP"
msg_info "Stopping $APP"
systemctl stop telegraf
msg_ok "Stopped $APP"
msg_info "Updating ${APP}"
apt-get update
apt-get upgrade telegraf -y
msg_ok "Updated ${APP}"
msg_info "Updating $APP"
apt-get update
apt-get upgrade telegraf -y
msg_ok "Updated $APP"
msg_info "Starting $APP"
systemctl start telegraf
msg_ok "Started $APP"
msg_ok "Updated Successfully"
msg_info "Starting $APP"
systemctl start telegraf
msg_ok "Started $APP"
msg_ok "Updated Successfully"
fi
exit
}