!290 [sync] PR-287: fix the problem that isula-build service did not stop after it was removed

From: @daishitou 
Reviewed-by: @jingxiaolu 
Signed-off-by: @jingxiaolu
This commit is contained in:
openeuler-ci-bot 2023-12-29 08:52:46 +00:00 committed by Gitee
commit 7630a913ba
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 19 additions and 3 deletions

View File

@ -1 +1 @@
0.9.6-18
0.9.6-21

View File

@ -1 +1 @@
37aa4197d30b2780332cd40479f3231a775b212f
2d64e7a9d75932f70713da4bc7a003ff23f10d4a

View File

@ -2,7 +2,7 @@
Name: isula-build
Version: 0.9.6
Release: 20
Release: 21
Summary: A tool to build container images
License: Mulan PSL V2
URL: https://gitee.com/openeuler/isula-build
@ -78,6 +78,16 @@ if ! getent group isula > /dev/null; then
groupadd --system isula
fi
%preun
%if 0%{?is_systemd}
%systemd_preun isula-build
%else
if [ $1 -eq 0 ] ; then
/sbin/service isula-build stop >/dev/null 2>&1
/sbin/chkconfig --del isula-build
fi
%endif
%files
# default perm for files and folder
%defattr(0640,root,root,0550)
@ -95,6 +105,12 @@ fi
/usr/share/bash-completion/completions/isula-build
%changelog
* Thu Dec 28 2023 daisicheng <daisicheng@huawei.com> - 0.9.6-21
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fix the problem that isula-build service did not stop after it removed
* Sat Jun 17 2023 panchenbo <panchenbo@kylinsec.com.cn> - 0.9.6-20
- Type:bugfix
- CVE:NA