fix upgrade problem that sysstat.service changes from disable to enable

This commit is contained in:
zhouwenpei 2024-01-10 01:18:57 +00:00
parent 36cc9fafa4
commit 8cf92c0ddb

View File

@ -1,6 +1,6 @@
Name: sysstat
Version: 12.7.4
Release: 1
Release: 2
Summary: System performance tools for the Linux operating system
License: GPLv2+
URL: http://sebastien.godard.pagesperso-orange.fr/
@ -73,7 +73,9 @@ export compressafter="31"
%systemd_postun sysstat.service sysstat-collect.timer sysstat-summary.timer
%posttrans
/usr/bin/systemctl enable sysstat.service >/dev/null 2>&1
if [ "$(systemctl is-enable sysstat.service)" == "enabled" ] ; then
/usr/bin/systemctl enable sysstat.service >/dev/null 2>&1
fi
%files -f %{name}.lang
%doc CHANGES COPYING CREDITS FAQ.md README.md
@ -86,6 +88,9 @@ export compressafter="31"
%{_mandir}/man*/*
%changelog
* Wed Jan 10 2024 zhouwenpei <zhouwenpei1@h-partners.com> - 12.7.4-2
- fix upgrade problem that sysstat.service changes from disable to enable
* Thu Jul 20 2023 zhangpan <zhangpan103@h-partners.com> - 12.7.4-1
- update to 12.7.4