From 8510ff8614421ca81e89c4957447788e59628317 Mon Sep 17 00:00:00 2001 From: caixiaomeng Date: Thu, 28 Dec 2023 18:41:19 +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 58219f9..c5801ba 100644 --- a/rasdaemon.spec +++ b/rasdaemon.spec @@ -1,6 +1,6 @@ Name: rasdaemon Version: 0.6.7 -Release: 16 +Release: 17 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 @@ -104,9 +104,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 28 2023 caixiaomeng - 0.6.7-17 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix rasdaemon disable service after upgrade + * Fri Dec 8 2023 Junhao He - 0.6.7-16 - Type:feature - ID:NA -- Gitee