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

Signed-off-by: zhang-liang-pengkun <zhangliangpengkun@xfusion.com>
(cherry picked from commit 4269a07019f018a797160410007afd60b94054dc)
This commit is contained in:
zhang-liang-pengkun 2024-03-05 17:18:39 +08:00 committed by openeuler-sync-bot
parent 33f143cdcc
commit 05d9e74fb6

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