!287 fix the problem that isula-build service did not stop after it was removed

From: @daishitou 
Reviewed-by: @jingxiaolu, @Vanient 
Signed-off-by: @jingxiaolu
This commit is contained in:
openeuler-ci-bot 2023-12-27 02:48:50 +00:00 committed by Gitee
commit 143888b91c
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-20

View File

@ -1 +1 @@
37aa4197d30b2780332cd40479f3231a775b212f
95b999499ce3a99101bab07e03a95e8eaf792288

View File

@ -2,7 +2,7 @@
Name: isula-build
Version: 0.9.6
Release: 19
Release: 20
Summary: A tool to build container images
License: Mulan PSL V2
URL: https://gitee.com/openeuler/isula-build
@ -75,6 +75,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)
@ -92,6 +102,12 @@ fi
/usr/share/bash-completion/completions/isula-build
%changelog
* Tue Dec 26 2023 daisicheng <daisicheng@huawei.com> - 0.9.6-20
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fix the problem that isula-build service did not stop after it removed
* Wed Mar 15 2023 laokz <zhangkai@iscas.ac.cn> - 0.9.6-19
- Type:enhancement
- CVE:NA