From 43c21db8f7f59c130407682cdc0db69f042f148e Mon Sep 17 00:00:00 2001 From: caixiaomeng Date: Thu, 28 Dec 2023 18:23:04 +0800 Subject: [PATCH] fix rasdaemon disable service after upgrade --- rasdaemon.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rasdaemon.spec b/rasdaemon.spec index 66b85f5..df5618b 100644 --- a/rasdaemon.spec +++ b/rasdaemon.spec @@ -1,6 +1,6 @@ Name: rasdaemon Version: 0.6.7 -Release: 14 +Release: 15 License: GPLv2 Summary: Utility to get Platform Reliability, Availability and Serviceability (RAS) reports via the Kernel tracing events URL: https://github.com/mchehab/rasdaemon.git @@ -100,9 +100,17 @@ if [ $1 -eq 2 ] ; then fi %preun -/usr/bin/systemctl disable rasdaemon.service >/dev/null 2>&1 || : +if [ $1 -eq 0 ] ; then + /usr/bin/systemctl disable rasdaemon.service >/dev/null 2>&1 || : +fi %changelog +* Thu Dec 18 2023 caixiaomeng - 0.6.7-15 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix rasdaemon disable service after upgrade + * Tue Dec 19 2023 caixiaomeng - 0.6.7-14 - Type:bugfix - ID:NA -- Gitee