diff --git a/sysstat.spec b/sysstat.spec index adb6eaef93c2605e08a7569f2272bc17940c0664..55be111cce11bacbb8579d831ffc55c04444cd30 100644 --- a/sysstat.spec +++ b/sysstat.spec @@ -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 - 12.7.4-2 +- fix upgrade problem that sysstat.service changes from disable to enable + * Thu Jul 20 2023 zhangpan - 12.7.4-1 - update to 12.7.4