!90 [sync] PR-88: Fix the incorrect command 'is-enable' to 'is-enabled'.

From: @openeuler-sync-bot 
Reviewed-by: @yanan-rock 
Signed-off-by: @yanan-rock
This commit is contained in:
openeuler-ci-bot 2024-03-26 02:28:39 +00:00 committed by Gitee
commit 7f9a50572d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: sysstat
Version: 12.7.5
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,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
@ -88,6 +88,9 @@ fi
%{_mandir}/man*/*
%changelog
* Thu Feb 29 2024 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 12.7.5-2
- Fix the incorrect command 'is-enable' to 'is-enabled'.
* Mon Feb 05 2024 zhouwenpei <zhouwenpei1@h-partners.com> - 12.7.5-1
- update to 12.7.5