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