Fix the incorrect command 'is-enable' to 'is-enabled'.

Signed-off-by: zhang-liang-pengkun <zhangliangpengkun@xfusion.com>
This commit is contained in:
zhang-liang-pengkun 2024-03-05 17:10:12 +08:00
parent 5e3813c8f2
commit 9c7746105e

View File

@ -1,6 +1,6 @@
Name: sysstat Name: sysstat
Version: 12.5.4 Version: 12.5.4
Release: 10 Release: 11
Summary: System performance tools for the Linux operating system Summary: System performance tools for the Linux operating system
License: GPLv2+ License: GPLv2+
URL: http://sebastien.godard.pagesperso-orange.fr/ URL: http://sebastien.godard.pagesperso-orange.fr/
@ -80,7 +80,7 @@ export compressafter="31"
%systemd_postun sysstat.service sysstat-collect.timer sysstat-summary.timer %systemd_postun sysstat.service sysstat-collect.timer sysstat-summary.timer
%posttrans %posttrans
if [ "$(systemctl is-enable sysstat.service)" == "enabled" ] ; then if [ "$(systemctl is-enabled sysstat.service)" == "enabled" ] ; then
/usr/bin/systemctl enable sysstat.service >/dev/null 2>&1 /usr/bin/systemctl enable sysstat.service >/dev/null 2>&1
fi fi
@ -95,6 +95,9 @@ fi
%{_mandir}/man*/* %{_mandir}/man*/*
%changelog %changelog
* Thu Feb 29 2024 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 12.5.4-11
- Fix the incorrect command 'is-enable' to 'is-enabled'.
* Wed Jan 10 2024 zhouwenpei <zhouwenpei1@h-partners.com> - 12.5.4-10 * Wed Jan 10 2024 zhouwenpei <zhouwenpei1@h-partners.com> - 12.5.4-10
- fix upgrade problem that sysstat.service changes from disable to enable - fix upgrade problem that sysstat.service changes from disable to enable