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

From: @zhang-liang-pengkun 
Reviewed-by: @yanan-rock 
Signed-off-by: @yanan-rock
This commit is contained in:
openeuler-ci-bot 2024-03-25 07:13:23 +00:00 committed by Gitee
commit 0a21924ffb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: sysstat
Version: 12.5.4
Release: 10
Release: 11
Summary: System performance tools for the Linux operating system
License: GPLv2+
URL: http://sebastien.godard.pagesperso-orange.fr/
@ -80,7 +80,7 @@ export compressafter="31"
%systemd_postun sysstat.service sysstat-collect.timer sysstat-summary.timer
%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
fi
@ -95,6 +95,9 @@ fi
%{_mandir}/man*/*
%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
- fix upgrade problem that sysstat.service changes from disable to enable