!123 fix rasdaemon disable service after upgrade

From: @pshysimon 
Reviewed-by: @lvying6 
Signed-off-by: @lvying6
This commit is contained in:
openeuler-ci-bot 2024-02-20 09:03:28 +00:00 committed by Gitee
commit d3b127114c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <caixiaomeng2@huawei.com> - 0.6.7-17
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix rasdaemon disable service after upgrade
* Fri Dec 8 2023 Junhao He <hejunhao3@huawei.com> - 0.6.7-16
- Type:feature
- ID:NA