From c5c614c5a9662db6728913c3b08f9a9b2d1201d9 Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Tue, 17 Oct 2023 04:38:04 -0600 Subject: [PATCH] chore(packaging): Remove unnecessary service file removal (#14106) --- scripts/deb/post-install.sh | 4 ---- scripts/rpm/post-install.sh | 4 ---- 2 files changed, 8 deletions(-) diff --git a/scripts/deb/post-install.sh b/scripts/deb/post-install.sh index 1f3c2ccf6..d7d23883e 100644 --- a/scripts/deb/post-install.sh +++ b/scripts/deb/post-install.sh @@ -26,10 +26,6 @@ function install_chkconfig { if [[ -L /etc/init.d/telegraf ]]; then rm -f /etc/init.d/telegraf fi -# Remove legacy symlink, if it exists -if [[ -L /etc/systemd/system/telegraf.service ]]; then - rm -f /etc/systemd/system/telegraf.service -fi # Add defaults file, if it doesn't exist if [[ ! -f /etc/default/telegraf ]]; then diff --git a/scripts/rpm/post-install.sh b/scripts/rpm/post-install.sh index 994570f9f..a6f05754a 100644 --- a/scripts/rpm/post-install.sh +++ b/scripts/rpm/post-install.sh @@ -4,10 +4,6 @@ if [[ -L /etc/init.d/telegraf ]]; then rm -f /etc/init.d/telegraf fi -# Remove legacy symlink, if it exists -if [[ -L /etc/systemd/system/telegraf.service ]]; then - rm -f /etc/systemd/system/telegraf.service -fi # Add defaults file, if it doesn't exist if [[ ! -f /etc/default/telegraf ]]; then