From eb0cafae15c54dbeae63f063b8bfb18ac870e0ec Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Thu, 11 Sep 2025 15:42:23 +0200 Subject: [PATCH] Update telegraf.sh --- ct/telegraf.sh | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/ct/telegraf.sh b/ct/telegraf.sh index 8012bcf1..66214f86 100644 --- a/ct/telegraf.sh +++ b/ct/telegraf.sh @@ -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 }