From 80872d30c9a3298b14258fa3685e2d7320e89833 Mon Sep 17 00:00:00 2001 From: Igor Peshansky Date: Tue, 3 Oct 2023 13:32:38 -0400 Subject: [PATCH] Remove conditional from posttrans, as it's never invoked on uninstall. --- templates/package-scripts/td-agent/rpm/posttrans | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/package-scripts/td-agent/rpm/posttrans b/templates/package-scripts/td-agent/rpm/posttrans index fb4bbb8c..725c936e 100644 --- a/templates/package-scripts/td-agent/rpm/posttrans +++ b/templates/package-scripts/td-agent/rpm/posttrans @@ -1,4 +1,2 @@ -if [ "$1" = "0" ] ; then - echo "Starting <%= project_name %> ..." - /sbin/service <%= project_name %> start >/dev/null 2>&1 || : -fi +echo "Starting <%= project_name %> ..." +/sbin/service <%= project_name %> start >/dev/null 2>&1 || :